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

后端 未结 5 1824
说谎
说谎 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:34

    Try to like this:

    $query = "SELECT username FROM $this->table WHERE username='$sUser'";
    $result = mysql_query($query);  
    $num_rows = mysql_num_rows($result); 
    

提交回复
热议问题