Hi all
I have just started with PHP I am using 5.2.5 and Apache 2.2.8
My problem is I am not getting anything back from my code to tell me what is happening
Code is
<?php
$username = "root";
$password = "";
$hostname = "localhost";
//connection to the database
echo '<p>Got Here</p>';
$dbhandle = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
if (!$dbhandle){
echo '<p>Failed</p>';
}
var_dump($dbhandle) ;
print_r ($dbhandle);
echo '<p>Got Here Two</p';
?>
All I get is the first echo
nothing from the die or the if or var_dump or print_r
I am used to being able to step through code line by line is there any software for PHP which will do this ?
Alternatively can anyone say why I am getting no output
TIA