pls help me with the connection (noob)
Posted: Wed Jul 08, 2009 8:31 am
im using the latest xampp, php5 and mysql 5..
but why cant I connect in php to mysql?
here's the code..
im currently very frustrated beacause im just starting and then i got this connection error!
i really dont know what to do..
Parse error: parse error in C:\[location]\default.php on line 29
$user=”root”;
$host=”localhost”;
$password=””;
$connection = mysql_connect($host,$user,$password) or die (“couldn’t connect to server”);
$db = mysql_select_db($database,$connection) or die (“Couldn’t select database”);
but why cant I connect in php to mysql?
here's the code..
im currently very frustrated beacause im just starting and then i got this connection error!
i really dont know what to do..
Parse error: parse error in C:\[location]\default.php on line 29
$user=”root”;
$host=”localhost”;
$password=””;
$connection = mysql_connect($host,$user,$password) or die (“couldn’t connect to server”);
$db = mysql_select_db($database,$connection) or die (“Couldn’t select database”);