Hello I am going through Build Your Own Database Driven Website 4th Edition, Chapter 4, the connection section
I have tried manually tweaking the code but nothing seems to work, I have even downloaded the code archive and moved the ‘connection’ folder within it to my apache2.2 htdocs folder and tried running it and all I get is the following error -
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 2
I have changed the password section so I do not think that is the error, I have tried using both mysql_connect and mysqli_connect as stated in a previous thread.
I have created a .php document using the code -
<?php phpinfo(); ?>
and I have included the entire output via a notepad file attached with this thread.
My server is running PHP 5.2.17
I have checked my .ini file and made sure that the mysql extension is enabled
As far as I can see everything is configured corrected and working, but I still can’t seem to get past this error message.
I have tried changing the ‘localhost’ section, again as directed in a previous thread.
I have no idea what to do next, an if I can’t resolve this issue I will be unable to connect to my database.
Thank you in advance for any help or tips.