Jump to content

Website running PHP & MySQL


brwalias

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.