bccamp
Technical User
- Jan 20, 2005
- 69
I'm having a problem getting the mysql_num_rows to deliver a result. I keep getting the error "mysql_num_rows(): supplied argument is not a valid MySQl result resource in .....
1) is there a limit to what mysql_num_rows() can discern?
2) are there limits to what my $query can have?
ex.
$query = "select NUM from db where CATEGORY = $click"; //$click is passed from previous page, it is set to NULL if //no value
$result1 = mysql_query($query);
$num1=mysql_num_rows($result1);
results in the error. The db has about 3000 listings. Is my syntax wrong?
Thanks
1) is there a limit to what mysql_num_rows() can discern?
2) are there limits to what my $query can have?
ex.
$query = "select NUM from db where CATEGORY = $click"; //$click is passed from previous page, it is set to NULL if //no value
$result1 = mysql_query($query);
$num1=mysql_num_rows($result1);
results in the error. The db has about 3000 listings. Is my syntax wrong?
Thanks