Re: Re[6]: [PHP] STrange Problem
| From: | PHP | Date: | Fri, 12 Mar 2004 19:23:47 +0000 |
| Subject: | Re: Re[6]: [PHP] STrange Problem | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180286@lists.php.net to get a copy of this message | ||
It returns:
Connected successfully
Like I said, I have not problems connecting. Only mysql_select_db will not
work.
> Hello,
>
> Friday, March 12, 2004, 7:00:38 PM, you wrote:
>
> P> Only msyql_select_db will not connect, it claims I am trying to use a
blank
> P> user, even though I specifically connect earlier with mysql_connect
with the
> P> specific user with no problems..
>
> What does this output?
>
> <?php
> $link = mysql_connect("localhost", "mysql_user",
> "mysql_password")
> or die("Could not connect: " . mysql_error());
> echo "Connected successfully";
> mysql_close($link);
> ?>
>
> And don't just remove the "user" and "password" parts, fill them in.
> If there is no password, put "".
>
> --
> Best regards,
> Richard Davey
> http://www.phpcommunity.org/wiki/296.html
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>