我无法弄清楚为什么$ points返回没有值
$query = mysql_query("SELECT * FROM `username` WHERE `password` = '$pword' AND `username` = '$uname'");
$rows = mysql_fetch_array($query);
$points = $rows[points];
答案 0 :(得分:0)
尝试使用SELECT points FROM
用户名WHERE
密码= '$pword' AND
用户名= '$uname'
并检查$ pword和$ nname值是否传递值
$points = $rows['points'];