Hello everybody,
I am a newbie first time posting...
I use PHP 5 beta & MySQL 4 on WinXP for local development. While I have no troubles connecting and creating databases thru command line, I cannot connect from PHP page.
Here is the simple code:
<?php
$host="localhost";
$username="root";
$password="";
$link = mysql_connect($host,$username,$password) or die("Unable to connect to database");
echo "Connected successfully";
?>
Which gives me this error in IE:
Fatal error: Call to undefined function mysql_connect() in C:\Documents and Settings\...(path to the root folder here)...\webs\tryout\dbconnect.php on line 10
Line 10 is the line with call to mysql_function
I actually enabled extension php_mysql.dll in php.ini and copied libMysql.dll into system root (system32) folder and still same thing...
Thank you,
Demainn