I am new to the use of PHP and have installed MYSQL (5.0.51-win32), PHP (php-5.2.3-win32) and Apache(apache_2.059-win32-X86-no_sl) on Windows XP professional.
PHP works fine with Apache and MYSQL works fine on its own, updates via the "Command" line.
I am getting an error when trying to access MYSQL from PHP
Fatal error:
Call to undefined function mysql_connect() in D:\Web\Webserver\Apache2\htdocs\databases-1.php on line 15
My code
$connection = mysql_connect($host, $user, $pas) or die ("Unable to connect!";
The error appears to be "mysql_*()" cannot be found.
I see you guys have met this problem a numbers of times and there appears to have been a number of articles about it. As a new user I am having difficulty in interpreting the solutions.
It appears that it is not straight forward to uninstall PHP and possibly change the version of PHP.
I am reluctant to make too many changes on my installed version, with an instruction that I am not familiar with.
Is there an one article that one confidently use please?
I hope that this request finds a patient and helpful reader.
Regards Ray Brown