<?php
$sql="select * from sc_products where products_index=1 and products_zt=1 order by ID desc limit 4";
$query=mysql_query($sql);
$Imgs = explode(",", $row['products_Images']);
$Imgs = str_replace("Images/prdoucts", "Images/prdoucts/small", $Imgs[0]);
while($row=mysql_fetch_array($query)){
?>
<li>
<a href="case_view.php-id=49.htm">
<img src="<?php echo str_replace("../", "", $Imgs); ?>" alt="车型:车型展示名称" width="215" height="161" />
<span><?php echo $row['products_name'];?></span>
<p>日租:123.00元/天</p>
</a>
</li>
<?php }?>
|