0
這裏是我的代碼SQL選擇當前圖像的代碼
@$sql="select * from mp_images where id='5' and status='0'";
@$query=mysql_query($sql);
while(@$row=mysql_fetch_array($query))
{
@$image=$row ['photo'];
?>
<img src="image/<?php echo $image; ?>" width="360" height="150">
<?php
}
?>
我想顯示當前最新的圖像我將它導入數據庫後
你得到任何錯誤? –
@VivekSadh:OP在他[壓制](http://php.net/manual/en/language.operators.errorcontrol.php)時會如何得到錯誤? – eggyal
@eggyal感謝您的信息。我從來不知道@是用來抑制錯誤信息的。謝謝:) –