Re: Re: mysql_connect does not connect

From: Date: Thu, 16 Sep 2004 14:24:13 +0000
Subject: Re: Re: mysql_connect does not connect
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-196860@lists.php.net to get a copy of this message
* Thus wrote Sam Hobbs: > "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 > > > When I do try mysqli_connect, I get: > > Fatal error: Call to undefined function mysqli_connect() > > So obviously I need to do something to enable that. I will look into that > later, but I am still trying to get mysql_connect to work. RTFM. mysql: This MySQL extension doesn't support full functionality of MySQL versions greater than 4.1.0. For that, use MySQLi. mysqli: The mysqli extension is designed to work with the version 4.1.3 or above of MySQL. Curt -- The above comments may offend you. flame at will.

« previous php.general (#196860) next »