I am using php and mysql (or at least trying to use) and am having problems connecting to my db? I am using the following php script...
<?php
$host = "localhost";
$user = "root";
$pass = "root";
$connect = mysql_connect("localhost", "root", "root");
if (!$connect) {
die("Could not connect:" . mysql_error());
}
echo "Connected successfully";
mysql_close($connect);
?>
but when I runit in my browser the screen is blank. I get neither of the echo's?
<?php
$host = "localhost";
$user = "root";
$pass = "root";
$connect = mysql_connect("localhost", "root", "root");
if (!$connect) {
die("Could not connect:" . mysql_error());
}
echo "Connected successfully";
mysql_close($connect);
?>
but when I runit in my browser the screen is blank. I get neither of the echo's?