RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112
| From: | Mark Roedel | Date: | Tue, 04 Dec 2001 17:01:55 +0000 |
| Subject: | RE: [PHP] 1 is not a valid MySQL-Link resource in /home/guestbook.php on line 112 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76546@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: hendro@torche-indonesia.net
> [mailto:hendro@torche-indonesia.net]
> Sent: Tuesday, December 04, 2001 1:42 AM
> To: php-general@lists.php.net
> Subject: [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
Where is your $database variable getting its value?
---
Mark Roedel | "Nothing in life is so bad that it cannot be
Systems Programmer | made much, much worse by the addition of
LeTourneau University | lots of spikes and razors."
Longview, Texas, USA | -- Sean Kozma