Let us say I have the following code in my script:
if(!$RET) header("Location: http://www.mysite/somepage.php?u=$user");
else header("Location: http://www.mysite/someotherpage.php?u=$user");
This works well, jumping to somepage.php if the $RET var = 0 and someotherpage.php if $RET = anything else.
In order to set $RET, I want to look up the existence of $user in a MySQL data table (the $user var exists anyway).
However, as soon as I add 'include "ez_sql.php;" the script stops working complaining that ez_sql has already sent headers.
How do I stop this?







3 Comments
Do you have a space anywhere being printed out before you call the header function?
Its usually cased by a spare space before the
Hey you know AdGuy always gets the last word! ;)