作者roger70349 (roger70349)
看板PHP
標題[請益] php程式碼的問題
時間Mon Jan 22 16:53:41 2007
請問各位,能幫我看一下程式碼,看看那裡有錯誤
<?php
/* 檢查帳號是否已申請過 */
$check=mysql_query("Select * from member where id='$id'");
$num=mysql_num_rows($check);
if ($num<>0)
{
echo "Sorry,此帳號已被申請,請重新輸入!";
exit;
}
if($_POST['password']!=$_POST['repassword']){
my_msg("密碼並不相符,需重復鍵入相同密碼以確認","add.php");
}
?>
但出現以下訊息
Warning: mysql_query() [function.mysql-query]: Access denied for user
'ODBC'@'localhost' (using password: NO) in
C:\AppServ\www\danshui\member\double.php on line 3
Warning: mysql_query() [function.mysql-query]: A link to the server could not
be established in C:\AppServ\www\danshui\member\double.php on line 3
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in C:\AppServ\www\danshui\member\double.php on line 4
請問各位,這個問題要如何解決
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.21.79.160
1F:推 alexblue:檢查mysql有沒有問題@@" 01/22 17:10
2F:推 superGA:你還沒登入mysql 01/22 17:39
3F:→ appleboy46:mysql帳號密碼錯誤 沒那個權限 01/22 20:40