开发者

mysql - fetching arrow and setting variable to certain row

开发者 https://www.devze.com 2023-02-19 09:29 出处:网络
i can\'t figure out why $points comes back without a value $query = mysql_query(\"SELECT * FROM `username开发者_开发百科` WHERE `password` = \'$pword\' AND `username` = \'$uname\'\");

i can't figure out why $points comes back without a value

$query = mysql_query("SELECT * FROM `username开发者_开发百科` WHERE `password` = '$pword' AND `username` = '$uname'");
$rows = mysql_fetch_array($query);
$points = $rows[points]; 


try to use SELECT points FROMusernameWHEREpassword= '$pword' ANDusername= '$uname' and check $pword and $nname values passing values or not

$points = $rows['points']; 
0

精彩评论

暂无评论...
验证码 换一张
取 消