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

rating

php results page

Thread began 8/14/2011 4:04 pm by biz295654 | Last modified 8/14/2011 4:04 pm by biz295654 | 831 views | 0 replies |

biz295654

php results page

I am working with the PowerStore database. Product group, products etc.
I am using this database on a sister site. It will not have a check out, but is only going to show the products, then a click thru to the check out site.

I have reached a point where I am stuck. I have accomplished a "product group" page where all the products in that category are listed. I have made each product clickable from that group page to a single page that is calling up that product group.

...domain/products.php?ProductGroup=5500

The way this company is structured is a productgroup is a "category", ie 5500 = jackets, and then each sku is a different color, so 5501 = black, 5502 = red etc.

So on the results page, I want to show one of the products, say black, a description price, etc. Then on the page in a smaller size, show 5502, 5503 etc.

I am stuck on how to get the results page to show the details of the products. I have tried a number of things, such as

SELECT *
FROM ps4_products
WHERE ProductName LIKE %colname%

hoping the product name, being a digit off from product group would work... nope.

SELECT *
FROM ps4_products
WHERE ProductGroup = colname LIMIT 1

no go

I am obviously missing php knowledge. Any pointers would be so appreciated.

thanks


The entry for the page leading to the results page is using this:

SELECT *
FROM ps4_categories, ps4_productcategories, ps4_products
WHERE ps4_productcategories.CategoryID =17 AND ps4_categories.CategoryID = 17 AND ps4_productcategories.ProductID =ps4_products.ProductID

Sign in to reply to this post

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