Jump to content

New to PHP - link to a page that will display dynamic data based off link


jodbowrs

Recommended Posts

I was using Coldfusion in Dreamweaver and recently switched to PHP so I'm new at this. 

 

my goal:

 

to have just one page that will display a list of members (we're a non-profit assoc) based off the link clicked.

 

the links are fields of work that are separate fields in the database.  If someone does work in that field then a 1 is placed in that field for that record. They are allowed to do work in more than one field.

 

So... I would like to find a way to set up the links with a variable or parameter so that when you click "Builders & Contractors" it will take you to the 1 directory page which would then pull up anyone who has a 1 in the "Builders_Contractors" field. 

 

The only way that I have figured out how to make this work is to create a separate page for each category with the query set to pull up the appropriate list.

 

Please help! We have over 100 fields of work plus a page for each letter of the alphabet! That's way too many pages to have all separately.

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.