Log In · Register

 
php new content, php help please
synatribe
post Feb 9 2008, 05:49 AM
Post #1


AIDS at RAVES.
******

Group: Official Designer
Posts: 2,386
Joined: Dec 2007
Member No: 598,878



i'll try to be as descriptive as possible if i get confusing please pm me
okay so I made a template but because it was html, i made a new php file for my html so when I appilied to all my pages the navigation was fine but the content are all the same because in my html document the div tag for content is included in it, I was thinking about strings but Im not sure how it would work with my php, please help me:]]]
 
 
Start new topic
Replies
freeflow
post Feb 9 2008, 02:41 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



When using includes you should use them for the overall outlook of the page. Don't put any content in the includes. That way you can allow each page to have different content while keeping the same design. If you will have the same sidebar for each one , then go ahead and add the sidebar to the template.

I think this tutorial explains PHP includes pretty well, so you should read it.

http://pixelfx.org/tuts/php/phpincludes.html


If you do it in that format, your content won't be the same. Either way though don't add content that way. I'd just add the basic coding in the include, then on each page put the DIV manually along with the content.

If that makes since.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: