Page 1 of 1
Showing fatal error in mysql_connect function
Posted: Sun Jun 19, 2005 8:30 am
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.
Posted: Sun Jun 19, 2005 9:08 am
by timvw
And have you loaded the extension? (Check your php.ini)
plz suggest to update the php.ini
Posted: Sun Jun 19, 2005 10:43 am
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.
Posted: Sun Jun 19, 2005 12:16 pm
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