|
-
Oct 30th, 2012, 10:28 AM
#1
Thread Starter
Junior Member
PHP One or many files?
At the moment i have an unordered list which is my links to pages on my website. I have set up divs so i have the header, content, sidebar and footer sections.
Now from what i am trying to get the content section will be the only section effected when page is changed all other sections will pretty much be ssi files if anything.
I have a home page, image page and words page.
Now as a user i might be on the home page and click on images link. Now my idea is to have a image gallery with items come up and depending on the results from the database.
What i really want to know now is do i need a home.php and images.php or do i really just need the one home.php and depending on the users actions and mysql results the content section changes? The reason i ask is because the home page will be post like, images will be gallery based and the words will be just a passive formatted paragraph.
I am sure there has to be a way to click on a link and instead of directing to a new php file it just reloads the present one and changes the content and the url as well (/words, /images, ...)
Tried to explain everything i could before bed hope to have a response soon, if anyone needs me to clarify anything they don't understand i will!
Any help or better ideas are appreciated!!! p.s i was going to call this thread "PHP 1..* files" but pretty sure that might've scared people off lol
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|