mysql_num_rows() expects parameter 1 to be resource, string given in

后端 未结 5 1771
说谎
说谎 2021-01-23 14:13

I have read through many other threads about this exact problem, but i for some reason can not solve my problem. Really need some help.

if (!$username||!$passwo         


        
5条回答
  •  粉色の甜心
    2021-01-23 14:23

    Ok, if anyone having the same issue, just add the variable within the if() statement two times, like so:

    $Query = mysql_query($sql); 
    IF($Query && mysql_num_rows($Query)> 0){ // continue with the code}
    

    This should fix the issue.

提交回复
热议问题