只是想顯示從數據庫中的一個記錄......但收到一個錯誤(在抓取陣列時)從數據庫中檢索一個記錄
$con=mysql_connect("localhost","root","");
mysql_select_db("school");
$iid=$_REQUEST['id2']; //mysql_fetch_array(): supplied argument is not a valid
$d=mysql_query("select * from notification where noticeid=$iid");
$data=mysql_fetch_array($d);
這裏是我的顯示標準...
<tr>
<td class=""><?php echo $data['noticeid'] ?></td>
<td class=""><?php echo $data['notificationtitle'] ?></td>
<td class=""><?php echo $data['notificationbody'] ?></td>
</tr>
已解決...上面的代碼中沒有問題... – user46329