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



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

Reply via email to