RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112
| From: | Richard Lynch | Date: | Tue, 04 Dec 2001 21:47:32 +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-76601@lists.php.net to get a copy of this message | ||
>> any one here can help my problem?
Eventually.
>> (I 'am using hypermart.net hosting, so i am not sure which
>> php version that they
>> provided)
<?php phpinfo();?>
will tell you the version number, and a bazillion more things or varying
importance.
>> $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
>
> Where is your $database variable getting its value?
That's definitely your next step -- Figure out what the heck is in
$database, and how it got there.
--
Like music? http://l-i-e.com/artists.htm