Hi Guys, PHP-newbie!
Trying to connect to my MySQL DB with the following code:
Code:
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'mypassword';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = 'crmpicco_mini';
mysql_select_db($dbname);
?>
My apache error log shows:
[Tue Sep 25 21:04:45 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\index.php on line 6
Which is the mysql_connect line. Commented in both dll lines from php.ini. Can anyone spot the problem here? Just trying to get setup with PHP on my local machine for the first time?
Picco
www.crmpicco.co.uk
www.ie7.com