Re: include() doing weird things (NEWBIE!)

From: Date: Fri, 23 May 2003 16:38:15 +0000
Subject: Re: include() doing weird things (NEWBIE!)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148796@lists.php.net to get a copy of this message
At 18:30 23.05.2003, David G. Simmons said: --------------------[snip]-------------------- >Okay, I admit I'm a newbie, but include is doing weird things to me. > ><?php >include("headfoot.inc"); >$title="My Title"; >mk_header($title); > >... >my other php stuff > >... >mk_footer(); >?> > >One would think that this would place the header first, then my >specific php stuff, then add the footer to the BOTTOM of the page, but >that is not what's happening! > >I get the title set correctly, then the footer is displayed, then the >stuff from my php processing. > >So the footer ends up at the TOP of the page! --------------------[snip]-------------------- Check the resulting HTML code of your page - this sounds like a table nesting problem. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#148796) next »