note 22489 added to function.mysql-query
| From: | sronic22 at hotmail dot com | Date: | Thu, 20 Jun 2002 03:05:30 +0000 |
| Subject: | note 22489 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32027@lists.php.net to get a copy of this message | ||
I don't use global=on
I made a fucntion to call and select database with function dbconnect()
.
Errors found that
<?php
include "common.inc";
$conn=dbconnect('database');
$result=mysql_query("SELECT * FROM Menu");
while($data=mysql_fetch_array($result))
{
echo $data[1];
}
?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in d:\celcom
alumni\headlines.php on line 5
--
http://www.php.net/manual/en/function.mysql-query.php
http://master.php.net/manage/user-notes.php?action=edit+22489
http://master.php.net/manage/user-notes.php?action=delete+22489
http://master.php.net/manage/user-notes.php?action=reject+22489