Jump to content

Archived

This topic is now archived and is closed to further replies.

brwalias

Website running PHP & MySQL

Recommended Posts

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!

Share this post


Link to post
Share on other sites
[quote author=brwalias link=topic=109107.msg439579#msg439579 date=1158952543]
does the global nav link pass a variable calling a function that dynamically creates the templates each time the function is executed? [/quote]

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.