View Single Post
Old 06-28-2007   #4 (permalink)
notjustgraphics
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,159

Send a message via MSN to notjustgraphics
Try taking all of the HTML headers out of the config.php file.. it should just be this:

<php><?php
$l = mysql_connect ( "localhost" , "HIDDEN" , "HIDDEN" ) or die("Error connecting: <br><br>".mysql_error());
mysql_select_db( "HIDDEN" ) or die("Error getting db: <br><br>".mysql_error());
?></php>

This setup is causing a second html header to be sent before the HTML is closed.

Also, for symantec markup (Standards Compliancy) your line break tags should be escaped... use <br /> instead of just <br> This has nothing to do with your problem though...

Anytime you call a page that has the <html> tag, the server will generate a header and initiate output... This CANNOT occurr before the session is established. If you have any HTML in your file before the session_start(); you will get an error.

If you are the same user who posted the problem in the thread yesterday, you will continue to get errors until you move the session_start(); to BEFORE the <HTML> tag.

Mike.
__________________
notjustgraphics is offline