PHP Error

From: Date: Fri, 12 Oct 2001 02:11:41 +0000
Subject: PHP Error
Groups: php.db 
Request: Send a blank email to php-db+get-13278@lists.php.net to get a copy of this message
Code from Index.phtml <? //if(getenv("REMOTE_ADDR") == "www.msn.com"){ header("Location: http://www.cnn.com"); } $db = mysql_connect("localhost", "login", "secret") or die ("Unable to connect to db"); mysql_select_db("jobs"); $return = mysql_query("select * from config"); $copy = mysql_fetch_array($return); mysql_close(); ?> This is the errors: Warning: Supplied argument is not a valid MySQL result resource in C:\sites\jobs\8-01\docs\index.phtml on line 7

« previous php.db (#13278) next »