ARRGGGHHH
Posted: Thu Jan 31, 2008 4:59 am
sorry for the title, but i feel like killing something at the moment, i have installed:
apache - works fine
php - works fine
mysql - works fine
so, why, when i try to use the code at the bottom does it come up with
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\test.php on line 5
thanks for any help ~ Monotoko
apache - works fine
php - works fine
mysql - works fine
so, why, when i try to use the code at the bottom does it come up with
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\test.php on line 5
Code: Select all
<?
$con = mysql_connect("localhost","xxxx","xxxx");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
?>