Getting rows in a db...

From: Date: Thu, 02 Aug 2001 05:27:22 +0000
Subject: Getting rows in a db...
Groups: php.general 
Request: Send a blank email to php-general+get-60821@lists.php.net to get a copy of this message
hey- if I do this: $query = "SELECT user FROM table WHERE cat='band'"; $result = mysql_query($query,$conn); $rows = mysql_num_rows($result); will I get something back from the $rows variable, or am I using the mysql_num_rows() function incorrectly. What I'm trying to do is get the number of rows returned as a result of that specific sql statement and query. thanks chris

« previous php.general (#60821) next »