我想查看登錄用戶是否已通過驗證。但有一個錯誤:PHP - Mysql查詢問題
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/psmcouk/public_html/colemansystems/verify.php on line 332
這裏是PHP代碼:
$user1 = $_SESSION['usr'];
$result = mysql_query("SELECT * FROM phpbb_members WHERE memberName=$user1");
while($row = mysql_fetch_array($result)) //LINE 332
{
$valid = $row['valid'];
}
if($valid == "1"){
echo "$user1, you're account is currently verified.";
}
我看不出有什麼不對這個代碼。
謝謝!
非常感謝!第一次工作!非常感激! – ryryan 2010-12-02 11:56:18