In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> $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

Are you actually using the same database for both queries? Try running 
the query from the command line on both machines and see what happens.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to