php3/php4 difference

From: Date: Fri, 22 Feb 2002 17:33:19 +0000
Subject: php3/php4 difference
Groups: php.general 
Request: Send a blank email to php-general+get-85872@lists.php.net to get a copy of this message
$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

« previous php.general (#85872) next »