Re: mysql_connect does not connect
| From: | Sam Hobbs | Date: | Tue, 14 Sep 2004 17:11:24 +0000 |
| Subject: | Re: mysql_connect does not connect | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196636@lists.php.net to get a copy of this message | ||
"Janbro" <janbro@web.de> wrote in message
news:20040914130524.62241.qmail@pb1.pair.com...
> Hi I connect to a MySQL 4.1 with the following String:
>
>
> if
>
> ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n
> ame"))
>
> watch the i in mysqli_connect!
>
> I think I've read somewhere that you are required to use that for the >4.1
> Versions, but you
>
> better look that up, I might be wrong there.
>
> Hope this helps
>
> JanBro
Thank you. Yes I know that there are two versions of interfaces to MySQL and
the newer version has the "i" in it. Perhaps I should use it, but I thought
the older version works also. I am using mysql_connect because the tutorial
I started using uses it. Obvioulsy mysql_connect is in php version 5 so it
should work.
So I hope no one thinks that my question has been answered.
If there is something stating that mysql_connect is not supposed to be used
then it would help to know where that is said.
Otherwise it would help to know what to look for as possible causes,
assuming that the host, user and password are correct.
Also, are the warning messages documented? As I asked in my original
question, is 10061 an error code?