QUOTE(magicboxgifts @ Jan 30 2005, 04:05 AM)
I am wondering if I can use PHP to display/control content without having to touch the outer template on all our pages with each update (except the shop as this is controlled via database pre-written)
Certainly ! That's one of the really nice things about using server side scripting. Plus, you've got options on how to do it, depending upon your individual needs. You can have the template in your php code --without the content actually showing in the code-- and pull that in dynamically via an include statement or a MySQL query, or you can do it the other way around where the content appears in the code and you include the template bits and pieces. Or you can modularize the whole thing. To any extent you want.
Literally, I have several thousand pages on various sites where if you looked at the code in the file it wouldread something like:
- A php include that pulls the top section of the template into the page.
- A MySQL query statement to retireve and pull the content into the page.
- a php include that pulls the bottom section of the template into the page.
Maybe 15-20 lines of code per physical page. And they can all be dynamic too if I want them to be.
QUOTE(magicboxgifts @ Jan 30 2005, 04:05 AM)
Is it possible for us to code sections of our pages in PHP to pull up results of a query (say most visited item and display an image/text) from our database
Sure, as long as that hit data is saved to the database somewhere. Piece of cake.
QUOTE(magicboxgifts @ Jan 30 2005, 04:05 AM)
but also use php to display content that can be updated outside of the template (ie in a word type document) in an editable region.
Yup. That's the way is should be done IMO.
QUOTE(magicboxgifts @ Jan 30 2005, 04:05 AM)
These results would be displayed in a table/cell defined by our css?
You can display it anywhere you decide to. And it will inherit your CSS since the end result is simple html code.