Could it be due to your database information being incorrect, and echoing out the error.

Could it be due to your database information being incorrect, and echoing out the error.
As with HTML, whitespace is ignored between PHP statements. This means it is OK to have one line of PHP code, then 20 lines of blank space before the next line of PHP code. You can also press tab to indent your code and the PHP interpreter will ignore those spaces as well.
I rest my case.
Lew.
Please re-read my first answer which you were keen to disprove. The problem is caused by whitespace OUTSIDE the PHP tags, which is not parsed by the PHP engine and is outputted directly to the browser, flushing the headers.As with HTML, whitespace is ignored between PHP statements. This means it is OK to have one line of PHP code, then 20 lines of blank space before the next line of PHP code. You can also press tab to indent your code and the PHP interpreter will ignore those spaces as well.
I rest my case.
Lew.
Last edited by Apolva; 26-07-2010 at 02:57 PM.
My bad I mis-read your post
Anyway to expand on appy's explanation go here: http://kb2.adobe.com/community/publi...sid_50572.html
Lew.
Want to hide these adverts? Register an account for free!