Re: [請益] 無法正常登入

看板PHP作者 (Arrack Tseng)時間16年前 (2009/07/31 02:07), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/8 (看更多)
※ 引述《intangible (~*)》之銘言: : 恩恩 謝謝<_ _> : $check=showsql("select * from `admin` where `account`='$account' : and `password`= '$password'"); : echo count($check); : } 我的引言為何都是白色的=_+ 這樣看起來好奇怪 你先echo("select * from `admin` where `account`='$account' and `password`= '$password'"); 如果沒猜錯的話 應該是會出現 select * from `admin` where `account`='' and `password`='' 如果是這樣,表示你的account跟password根本沒有去取值 如果是表單就用 $account=mysql_real_escape_string($_POST['account']);//簡易用法 取一下值在試試看 這跟php.ini的設定有關係~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.84.184.124 ※ 編輯: arrack 來自: 219.84.184.124 (07/31 02:10)
文章代碼(AID): #1ASU5gOy (PHP)
討論串 (同標題文章)
文章代碼(AID): #1ASU5gOy (PHP)