Fatal error: Call to undefined function mysql_connect()
Fatal error: Call to undefined function mysql_connect() in c:\program
files\apache group\Apache\htdocs\mysql_test.php on line 2
I've spent 11 hours today trying to get past this ONE problem.
I have installed:
MySQL 4.1.11
Apache 1.3.33
PHP 5.04
these were the versions referred to in the book "PHP and MySQL".
When I run the script:
<?php
mysql_connect ('localhost', 'root', 'password');
?>
where localhost, root and password are the REAL values for this given test
system and all I have seen is:
Fatal error: Call to undefined function mysql_connect() in c:\program
files\apache group\Apache\htdocs\mysql_test.php on line 2
I can run MySQL and create database etc. If I run the script:
<?php
phpinfo();
?>
I get to see a whole load of info but no mention of MySQL..
If I run 'mysqld --standalone' from a DOS prompt I see "[ERROR] Can't find
messagefile "C:\xampp\mysql\share\english\errmsg.sys" which is correct, as I
no longer has xampp installed 9which is one of the other many options I have
tried today, with equal lack of luck.
Can anyone offer any suggestions?
thanks.
|