$numresult=mysql_query($sql) or die( "4 QUERY ERR $sql");
echo "numresult = $numresult"; $numrows=mysql_num_rows($numresult); mysql_free_result($numresult); echo "<P align='left'>You have selected " .$numrows ." record(s)."; When I run the script above on php4 windows I get the following result: numresult = Resource id #2 You have selected 0 record(s). When I run the script above on php3 linux I get the following result: numresult = 2 You have selected 1382 record(s). Why do I get two different values for $numresult? Thanks __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php