PHP code in Window OS (using EasyPHP to set up server, php and mySQL) works well without problem. But the same php code could not work when migrated them to Red Hat Linux 9
and got the error warning;
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /phpode1.php on line 25
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /phpcode1.php on line 35
Please instruct what to do in order to get the php code from Window OS to work on Red Hat.