close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 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 | 2570 views | 43 replies

Morgan

Originally Said By: reiter303441179
  Morgan, I every time I click on a category link which takes me to category.php?ProductCategoryID=33 the page starts loading all 11,000 products instead of just the 277 which are in this category. Any ideas of what I'm doing wrong for it to pull all the products instead of the ones in the said category?  



Hi, looks like the wrong URL parameter is picked up by the page that is to show the chosen category. :) Chris have made a nice tutorial that explains it pretty good. Im to lazy to take screenshots ;)

The importen thing is to have the URL parameter set to ProductCategoryID in the recordset on the page that is to show the chosen categories products.

From the link category.php?ProductCategoryID=33 you send the ProductCategoryID as the URL parameter. Check my attached image. :)
"In the screenshot my URL parameter is called catID instead of ProductCategoryID"
Btw, is the products and the categories in defferent tables? Not sure if i asked this before, if they are different tables, are they connected with foreign keys?
One more thing, when you make the recordset, and you are unsure if the URL parameter is the correct one you can click the "Test" button in the Recordset dialog to see if its the right parameter/table etc ect.

//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...