PDA

View Full Version : MySQL Issues



sjlplat
07-03-2007, 07:45 PM
Fixed! Here's the problem and solution:



$row = mysql_num_rows($query_agent) or die(mysql_error());


Should be:



$row = mysql_num_rows($query_agent);


I guess you can't use die() with mysql_num_rows().

Seb
07-04-2007, 11:48 AM
You should, seeing as it returns false on failure?

sjlplat
07-04-2007, 06:15 PM
That's what I thought, but for some odd reason the script would not continue passed that line if I included the die() function. Removed the die() function and everything works flawlessly. :confused: