NYCPHP Meetup

NYPHP.org

[nycphp-talk] php + mysql

Daniel Convissor danielc at analysisandsolutions.com
Sat Dec 18 22:26:55 EST 2004


Dude:

On Sat, Dec 18, 2004 at 02:37:26PM -0500, Juancarlos Aponte wrote:
> require_once ('mysql/mysql_connect.php');

...snip...

> $dbc = mysql_connect (DB_HOST,DB_USER,DB_PASSWORD);
> mysql_select_db (DB_NAME);

As the manual says, and I said twice, you need to use the mysqli 
extension.  And, as the manual said and I said last time, you have to use 
mysqli_connect() and mysqli_select_db()
     ^                    ^
    notice the "i"'s  there?
All of the functions you need to operate with MySQL 4.1 need to have an 
"i" in them.

As far as phpmyadmin, I bet there's a setting you didn't set telling it to 
use the mysqli extension.

Good bye,

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list