Jump to content

Johng1010

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by Johng1010

  1. Thanks for the reply You are correct display_errors was of so could not see runtime error. error_reporting is E_ALL in php.ini phpinfo() reports it as 6143 is this correct ?
  2. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.