Re: mysql_num_rows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>      $query ="SELECT username FROM users WHERE username=('$username')";
>     // $result = mysql_query($query, $db);


Above line should be uncommented.


>      if (!$query)

And the "if" checking the number of rows returned from the $result set.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux