Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Php Query
01-06-2010, 06:57 PM #1
- Join Date
- Dec 2009
- Thanked 0 Times in 0 Posts
I have a ph query for you please.. Im in the process of designing a php based website to run under my membership script.. See it here http://www.supreme-host.com/web/categories.php
At the moment I have create it all on one page. However I am just checking to see what would be the best way to, keep it as is or:
Create several php pages and then link to this one.. One php page for the left side bar column, and another one for the right side bar column?
Once I have set the left and right sidebar columns under the membership script admin, i.e categories... They will never change until I add a new one.. However the middle column will constantly change now matter what you are look at.. Just like in a wordpress blog..
Your thoughts please?
01-06-2010, 07:19 PM #2
- Join Date
- Jun 2003
- Cottage Grove, Minnesota
- Thanked 1,096 Times in 1,087 Posts
Correct ... make a PHP script for each section and then
simply use PHP Includes in your "main page template" to
insert the scripts (or pages) into your main page.
That will give you another feature also ... a section could
change it's appearance or permissions based on who is logged-in.
When someone is logged-in, a session variable gets set, so you can
read that at any time, from any script, and make decisions based off of that.
Users who have thanked mlseim for this post: