如何从数据库上载图像并将其推入<;部门>;在php中?
我在php中有这样的如何从数据库上载图像并将其推入<;部门>;在php中?,php,database,database-connection,Php,Database,Database Connection,我在php中有这样的 我有数据库名“pv”和表名“picture” 如何在php中将图像从我的表加载到 我的div代码: <div id = "leftContent"> <?php for($i = 1; $i<49; $i++) { echo"<div class = product>San Pham $i</div>"; if($i%4==0) echo "<br
我有数据库名“pv”
和表名“picture”
如何在php中将图像从我的表加载到
我的div代码:
<div id = "leftContent">
<?php
for($i = 1; $i<49; $i++)
{
echo"<div class = product>San Pham $i</div>";
if($i%4==0)
echo "<br />";
}
?>
}
请帮助我,我只是PHP的新手:(您没有向我们提供有关您正在使用的数据库及其结构的太多信息。 但作为一个起点,也许你想读: 或 如果你有更具体的问题,回来问吧 希望这有帮助
{
width:180px;
height:190px;
float:left;
background-color:#33FF99 ;
border-right-color:#000000;
border-bottom-color:#000000;
border-width:1px;
border-style:dashed;