我想從我的數據庫獲取數據 - 在這裏是我的代碼:空值
$rs = mysql_query("select * from u_gui where nam='".$nam."'",$db);
$total = mysql_num_rows($rs); // returns 1
if(!$total)
{
echo "no records found.";
}
echo $rs["data"];
當我獲取記錄的作品,我從mysql_num_rows獲得1(),但嘗試時呼應的實際數據我一直都想與空白結果.. :(
任何想法有什麼不對?
請你在這裏展示表'u_gui'結構。 – anubhava 2011-03-19 17:47:21