Showing fatal error in mysql_connect function

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
amlan_08
Forum Newbie
Posts: 11
Joined: Sun May 22, 2005 1:24 am

Showing fatal error in mysql_connect function

Post by amlan_08 »

I am very new in PHP. Whenever I try to connect to mySQL through the function mysql_connect it shows an fatal error that mysql_connect is an undefined function. Plz help me to overcome that problem. I also copied the the php_mysql.dll, php_mysqli.dll & libmysql.dll files in my PHP folder. What can I do now to connect mysql.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

And have you loaded the extension? (Check your php.ini)
amlan_08
Forum Newbie
Posts: 11
Joined: Sun May 22, 2005 1:24 am

plz suggest to update the php.ini

Post by amlan_08 »

I just load the php_mysql.dll extension in php.ini file. But my program shows an error for the mysql_create_db function. Plz suggest me to update the php.ini file.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

mysql_create_db function is deprecated, I believe. Just run an SQL query to create the db.

http://dev.mysql.com/doc/mysql/en/create-database.html
Post Reply