[thelist] php/mysql update, then redirect

Matthias Ritzkowski Matt at grndwtr.com
Mon May 6 08:21:01 CDT 2002



That was it - ok one more time kudos to the list! I had spent a day looking
for this!!

Thanks a lot!

for php/mysql beginners:
Always make sure your include file does not include any blank lines after
the closing tag.
This will generate output, which may cause problems later on (e.g. when you
are redirecting with a header function!)

-----Original Message-----
From: Steve Lewis [mailto:slewis at macrovista.net]
Sent: Friday, May 03, 2002 20:50
To: thelist at lists.evolt.org
Subject: Re: [thelist] php/mysql update, then redirect

John Corry wrote:

>I'll bet what you're including before header() is outputting
>something...that would break it the way you've described.
A common mistake is to have BLANK LINES after your  ?> tag in the
included file as below:

--begin included file
    // do database definition here

--- end file

This is easy to do, but easy to fix.  Delete the blank line at the end
of the file, and there will be no "output" in this include.


For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list