| 
	
 | 
 Posted by farhan on 11/04/07 22:02 
On Nov 4, 8:05 pm, macca <ptmcna...@googlemail.com> wrote: 
> Howz about posting your code? 
> 
> Apart from that, check the settings in your php.ini file and make sure 
> that error reporting is turned on: 
> 
> set 
> 
> error_reporting  =  E_ALL 
> 
> and 
> 
> display_errors = On 
> 
> restart the server and run the script again. 
 
Here it is: 
 
<?php 
 $username = "root"; 
 $password = "budget"; 
 $database = "budget"; 
 
 echo "foobar1"; 
 
 $link = mysql_connect("192.168.1.100", $username, $password); 
 
 echo "foobar2"; 
 
 if (!$link) { 
    die('Could not connect: ' . mysql_error()); 
 } 
 
 echo 'Connected successfully'; 
?> 
 
HTML that is generated with this script is completely blank. Thanks 
for the display_errors = on tip, it is reporting errors (for other 
scripts) but nothing new for this one. 
 
Thanks again, 
Farhan
 
  
Navigation:
[Reply to this message] 
 |