Error: Call to undefined function mysql_connect()
Posted on 2015-01-13
I had apache, php, MySQL installed on my PC when the OS was Windows XP.
At the time, I used wamp to install them.
Recently, my PC was changed out for new PC with Windows 7, 64bit machine.
For the past 2 days how, I have had little success trying to reinstall apache, php and MySQL.
Initially, I tried using WAMP but after several unsuccessful attempt to fix missing dll issue, I tried using xamp.
That too was giving me same error.
So, I decided to do it manually.
First, I successfully installed apache.
Then I successfully installed php (tested with phpinfo to confirm).
Finally, I successfully installed MySQL.
I was able to recreate the database and tables I had before switching off PC.
The issue now is running my php app that used to work.
I just keep getting the error:
Call to undefined function mysql_connect() ...
I am also asking to be held by hand to point out what I am doing wrong.
I have been looking at the entries with phpinfo but I can't see what stands out.
Any assistance is greatly appreciated.