close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Database Help

Thread began 8/06/2012 6:37 pm by reiter303441179 | Last modified 9/02/2012 1:20 pm by reiter303441179 | 2537 views | 43 replies

Morgan

Originally Said By: reiter303441179
  Morgan, I have thought of the idea of making the category pages dynamic but do not know how. An example of what I want is to have links for categories which in turn will take the viewer to a page specific to that category but like you said I don't want to build that many pages individually. I new there was a way to do it and you have confirmed that but I just don't know how to go about doing that.  



At first, on the page that should show the products from a category, make the recordset to pick up the category ID (or what ever parameter/variabel you have for the categories) from the link, see what i typed regarding the links at the bottom.
This example is pretty basic.

SELECT *
FROM products
WHERE catID = colname

----
If you have different tables for the products and for categories you need to join them so the tables know what to look for and where.
Like this

SELCET * FROM tableProducts, tableCategories WHERE tableProducts.catID = tableCategories.catID AND tableCategories.catID = colname

"use INNER JOIN if you need"
----

Where the colname is the URL parameter you set to pass the parameter in to the page that shows the products from a chosen category.

So when you pick a category, from a menu or link, the link should look something like this: products.php?cat=22, or pass the parameter/varible as text, then i should look like this: products.php?cat=guns.

Hope this helps you out. :)

/Morgan

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...