I am building this script step by step and the first step is not working. Simply to connect to mysql, here's the code:
Code:
$connect = mysql_connect("localhost","root","newman$") or
die ("Hey loser, check your server connection.");
echo "if you gotten this far it means things worked out";
Instead I get the following error:
Code:
Fatal error: Call to undefined function mysql_connect() in C:\apache\Apache2\development\mysql_up.php on line 11
Line 11 is as follows:
Code:
$connect = mysql_connect("localhost", "root", "newman$")
My OS is xp pro and I have successfully installed apache and php5. Mysql works fine at the command prompt. The script I am writting is in php and the entire thing is simple and short:
Code:
<?php
/*
$host = "localhost";
$user = "root@localhost";
$pass = "newman$";
*/
//connect to MySQL; note we've used our own parameters - you should use
//you own for hostname, user, and password
$connect = mysql_connect("localhost", "root", "newman$") or
die ("Hey loser, check your server connection.");
?>
Need Help