Page 1 of 1

PHP template

Posted: Mon Mar 02, 2009 8:27 pm
by hudarsono
Dear all,

Do anyone know the php code, so the there is a part in the page which is not reloaded when user browse to another page. That part would be stay the same across all page. And since that part need database query before showing up, it just do query on first time show, and after that, no need to query again when show up on another page, just stay statically accross all page.

Thanks in advance.

Re: PHP template

Posted: Tue Mar 03, 2009 8:16 am
by sandstorm140
Try using standard HTML frames

http://www.w3schools.com/HTML/html_frames.asp

Re: PHP template

Posted: Tue Mar 03, 2009 9:49 am
by Draco_03
Sadly, a Frame seems to be what your looking for. But in 2009, trying to minimize frames is always a good choice.
Because, honestly, frames are the devil!!
Alternative to frames

things like includes, or javascript / Ajax are more appropriate in my opinion (SEO wise), even Iframes.