看板 [ PHP ]
討論串[問題]關於if...else問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者yhls (yhls)時間19年前 (2006/09/21 13:52), 編輯資訊
0
0
0
內容預覽:
多謝指教. 不過我查了一下似乎沒有mysql_fetch_result這個函式. 改成 $number = mysql_num_rows($result);就好了. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 220.134.173.80.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者taiwancat (月季)時間19年前 (2006/09/20 09:27), 編輯資訊
0
0
0
內容預覽:
假設沒這個帳號的話. 你sql語法傳回來的會是空result. 後面自然就跑不出來. 建議你改成這樣. $sql = "select count(*) from user_info where user_accout = "..... .... $number = mysql_fetch_resul
(還有34個字)

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者yhls (yhls)時間19年前 (2006/09/20 00:07), 編輯資訊
0
0
0
內容預覽:
$user_account = $_POST['user_account'];. $sql = "select * from user_info where user_account = \"$user_account\"";. $db_result = mysql_query($sql,$db_c
(還有158個字)
首頁
上一頁
1
下一頁
尾頁