php new content, php help please |
php new content, php help please |
![]()
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:]]] |
|
|
![]() |
![]()
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. |
|
|
![]() ![]() |