I've already installed apache server, php and mysql and they are working.
I can't configure php and mysql to work together. When I run the test, I receive the message: "Fatal error: Call to undefined function mysql_connect() in C:\apache\htdocs\mysql_test.php on line 9".
What can I do?

Recommended Answers

All 3 Replies

Do you have the php_mysql.dll in the correct place and have you changed the line

;extension=php_mysql.dll

to

extension=php_mysql.dll

in your php.ini file?

I did, of course. They still don't work together. Another question is why, when I write localhost/info.php, in the seven's table row, it's written Loaded Configuration File -none.

At last I've solved this problem copying libmysql.dll in C:\windows\system32. (
It seems that php5 offer no support for mysql so we have to configure manually to work together).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.