Hi. I'm getting this error when trying to execute the following php code.
Warning: Supplied argument is not a valid MySQL result resource in /export/vol2/httpd/htdocs/academic/engineering/leap/test.php on line 22
21. $query = mysql_db_query($database,"SELECT * FROM users",$link_id);
22. $result = mysql_fetch_array($query);
This code works with no errors on my home machine. I have established a connection and $database and $link_id are correct. The databases are on different systems, but i used the same statements to create them. I have the same privledges in each database. Any ideas what could be causing this error??