Re: I'm using mysql. How can i resolv this error?.
| From: | Kelvin | Date: | Fri, 27 Apr 2001 14:09:10 +0000 |
| Subject: | Re: I'm using mysql. How can i resolv this error?. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8944@lists.php.net to get a copy of this message | ||
Hi
Sample,
$link = mysql_pconnect("localhost","login","pass") or
die(mysql_error);
if ($link && mysql_select_db("DBname"))
{
return($link)
}
Than.....your Query here.
Kelvin.
""hansol"" <pms@hansolsoft.com> wrote in message
news:9c8n9j$vcs$1@toye.p.sourceforge.net...
> This is Sample:
>
> $conn= mysql_connect("localhost","login","passwd") or die
> ("ERREUR de
> connexion au Serveur");
> $result = mysql($conn, "SELECT id, name, salary FROM employees");
>
> But,Error appear.
>
> supplied argument is not a valid mysql/Link resource in line xx
>
>
>
>
>
> --
> 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
>