※ 引述《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)