PHP template

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hudarsono
Forum Newbie
Posts: 1
Joined: Mon Mar 02, 2009 8:18 pm

PHP template

Post 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.
sandstorm140
Forum Newbie
Posts: 10
Joined: Mon Mar 02, 2009 6:17 am

Re: PHP template

Post by sandstorm140 »

Try using standard HTML frames

http://www.w3schools.com/HTML/html_frames.asp
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Re: PHP template

Post 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.
Post Reply