Jump to content


Photo

Website running PHP & MySQL


  • Please log in to reply
2 replies to this topic

#1 brwalias

brwalias
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 September 2006 - 07:15 PM

Please excuse this post if it's similar to another.  I looked but could not find an answer on this forum.

I'm building a database driven website using PHP & MySQL.  I'm very new at using PHP and am looking for a solution as well as get a better sense of how this will work.

I would like to setup one template file that displays the overall layout of the site.  This could also be referred to as the design skeleton for the site. 

Now, the global nav is going to have various links that represent a category of the content in the site.  When selected, a request to the database for the content is made.  I would also like the template to be called so each of the global nav links generates dynamic content and pages.  What is the best way to handle this?

thoughts:
does the global nav link pass a variable calling a function that dynamically creates the templates each time the function is executed?

I'm not necessary looking for code but any kind of discussion would be helpful! 

Thanks!

#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 22 September 2006 - 07:18 PM

does the global nav link pass a variable calling a function that dynamically creates the templates each time the function is executed?


How it will work will depend on database design, logic used when programming it, and how you designed the template system.
PHP Ninja

#3 brwalias

brwalias
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 September 2006 - 07:22 PM

This is an ecommerce site so it will be category driven. 

i.e.  once a category 1 is selected, it should display a landing page for category 1 with multiple sub categories of Category 1.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users