Re: mysql_connect returning error message
| From: | Mark A Mucha | Date: | Thu, 20 Jul 2000 05:10:59 +0000 |
| Subject: | Re: mysql_connect returning error message | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1313@lists.php.net to get a copy of this message | ||
by table i meant database ;O)
----- Original Message -----
From: "Mark A Mucha" <mmucha@cfl.rr.com>
To: "ostrichneck" <BENNETTM@cnbrown.com>; <php-db@lists.php.net>
Sent: Thursday, July 20, 2000 1:06 AM
Subject: Re: [PHP-DB] mysql_connect returning error message
> Make sure you have granted yourself permission to access that specific
> table.
> I had that same problem, and the above fixed it.
>
> MArk
> ----- Original Message -----
> From: "ostrichneck" <BENNETTM@cnbrown.com>
> To: <php-db@lists.php.net>
> Sent: Wednesday, July 19, 2000 12:38 PM
> Subject: [PHP-DB] mysql_connect returning error message
>
>
> > Hello,
> >
> > For some strange reason, when I try to do:
> > $dblink = mysql_connect("<hostname>", "<user>",
> > "<password>");
> >
> > if I echo $dblink it returns the message "Resource id #1"
> >
> > because of this, when I do:
> >
> > mysql_select_db("<databasename>", $dblink);
> >
> > and create the query and return the result, etc. I get the following
> message:
> >
> > Warning: Supplied argument is not a valid MySQL-Link resource in
> > (Then/it/lists/the/filename and line #)
> >
> > Presently, I'm using:
> > Web Server = PWS/Win98
> > PHP4
> > MYSQL 3.22
> >
> > Does anyone know why mysql_connect() is returning a message instead of
> > a value and how to fix it?
> >
> > TIA
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>