Hi All
I installed PHP 5.2.5 and MySQL 5.0.51 versions. I am trying to establish the database connection with MySQL through PHP, I got the fatal error of the below message. I am using the IIS server of Windows XP systems with Service pack S2.
Fatal error: Call to undefined function mysql_connect()
This is my program, please check it and suggest it.
[CODE=PHP]
<?
$hostname="loca lhost";
$user="root";
$pass="root";
$connection = mysql_connect(" $hostname" , "$user" , "$pass");
$db = mysql_select_db ($dbase , $connection);
echo "got the connection";
?>
[/CODE]
I installed PHP 5.2.5 and MySQL 5.0.51 versions. I am trying to establish the database connection with MySQL through PHP, I got the fatal error of the below message. I am using the IIS server of Windows XP systems with Service pack S2.
Fatal error: Call to undefined function mysql_connect()
This is my program, please check it and suggest it.
[CODE=PHP]
<?
$hostname="loca lhost";
$user="root";
$pass="root";
$connection = mysql_connect(" $hostname" , "$user" , "$pass");
$db = mysql_select_db ($dbase , $connection);
echo "got the connection";
?>
[/CODE]
Comment