Showing fatal error in mysql_connect function
Moderator: General Moderators
Showing fatal error in mysql_connect function
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.
plz suggest to update the php.ini
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.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
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
http://dev.mysql.com/doc/mysql/en/create-database.html