RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112
| From: | Nicolas Guilhot | Date: | Tue, 04 Dec 2001 08:13:12 +0000 |
| Subject: | RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76477@lists.php.net to get a copy of this message | ||
Check that you have not already close the connection to the mysql database.
Or maybe, the mysql_connect returned an error !
-----Message d'origine-----
De : hendro@torche-indonesia.net [mailto:hendro@torche-indonesia.net]
Envoyé : mardi 4 décembre 2001 08:42
À : php-general@lists.php.net
Objet : [PHP] 1 is not a valid MySQL-Link resource in
/home/guestbook.php on line 112
any one here can help my problem?
(I 'am using hypermart.net hosting, so i am not sure which php version that
they
provided)
Here are the problems:
$sqlshow = "SELECT * FROM $table ORDER BY id DESC LIMIT $show, $maxshow";
$result = mysql_db_query($database, $sqlshow);
>>> produce: 1 is not a valid MySQL-Link resource in /home/guestbook.php on
line
112
while (($myrow = mysql_fetch_array($result)))
>>> produce: Supplied argument is not a valid MySQL result resource in
/home/guestbook.php
on line 116
mysql_close();
>>> produce: 1 is not a valid MySQL-Link resource in /home/guestbook.php on
line
126
thanks.
hendro.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net