mysql problems

From: Date: Wed, 13 Mar 2002 01:19:17 +0000
Subject: mysql problems
Groups: php.general 
Request: Send a blank email to php-general+get-88275@lists.php.net to get a copy of this message
Hi on this code: $link = mysql_connect("localhost", "login", "passwd"); mysql_select_db("table"); $result = mysql_query("select * from table"); while ($row = mysql_fetch_object($result)) { echo $row->ID; echo $row->Drank; } mysql_free_result($result); mysql_close($link); It resulst in Warning: Supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\htdocs\index.php on line 13 Warning: Supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\htdocs\index.php on line 17 line 13 = while ($row = mysql_fetch_object($result)) { line 17 = mysql_free_result($result); I'm running an Apache/1.3.23 on a win 2000 with PHP Version 4.1.2 and mysql 3.23.39. Does it not recoginze this mysql_... statements? Maarten

« previous php.general (#88275) next »