Help - Search - Members - Calendar
Full Version: php and MySQL
BleepingComputer.com > Software > Programming
   
TheNoodPope
In my site, I use the line of code:
CODE
if (mysql_num_rows($result) == 0) {

and on both servers I've tested it on, I get this error:
QUOTE
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\wamp\www\reg_modules\process.inc on line 171

Anyone know how I can fix this?
SNC-Zach
Paste the entire code segment from the mysql_connect() to the end of the page..
Grinler
Yup...we would need to see the code. Looks like you either have an error in your query, not connected to a database, etc.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.