I am new to PHP and MySQL and really need some help
I have a winXP pro SP2 PC
using Apache 1.3.33, PHP 5.04 and MySQL4.1.1
I have configured everythin as per the PHP.net instructions
Apache works ok
and PHP works ok - phpinfo works OK - but I cant get php to connect with MySQL
I have added C:/php to the path statement
extension_dir points to c:\php\ext\ (I have also tried c:\php\ with no sucess)
I have set up
extension=php_mysql.dll
I have used the code below to check for a connection to MySQL I connect to this page I get the error message
<?php
$connection = mysql_connect ('localhost', 'root','')
or die( "Sorry - Unable to connect" );
echo( "Congratulations you are connected to MySQL" );
?>
I connect to this page I get the error message
Fatal error: Call to undefined function mysql_connect() in c:\Apache\htdocs\mysqltest.php on line 7
what is going on?
where have I gone wrong? 
|