Re: mysql_num_rows
| From: | Daniel Clark | Date: | Wed, 03 Mar 2004 20:17:10 +0000 |
| Subject: | Re: mysql_num_rows | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33269@lists.php.net to get a copy of this message | ||
> $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.