close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

using manufacturerid to show data

Thread began 1/03/2017 3:54 am by Jamie | Last modified 1/04/2017 3:56 pm by Ray Borduin | 1026 views | 4 replies |

Jamie

using manufacturerid to show data

On a site you've helped me with before (see PM) the shopsearch.php page attached is not filtering by the ManufacturerID - ie, if you have selected the section 'RDA' and do a search, only products that have an associated with ManufacturerID = should show. At the moment the search just shows anything that matches the searched data
http://clients.motley.site/wainwright/

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the code on lines 11-31 is repeated just below it, so it can be deleted.

I don't see any code that filters based on the selected manufacturer. Maybe the code wasn't added to this page at all yet? I thought we saved a session variable with the current manufacturer and then used that to filter the recordset. This page doesn't seem to have it at all. I don't remember the database column name or session variable name we used, so I can't really give a code sample for what is missing. Maybe find it on the page where it is working.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

ok, have attached a refreshed page for shopsearch.php together with the one from the product results page which works. The rs' are different and am not sure what I need to do to the shopsearch page to modify it (I dropped the rs from the product results into shopsearch and it wouoldnt return any items at all

Sign in to reply to this post

Ray BorduinWebAssist

I think you would just have to add this to your query:

php:
AND ProductManufacturerID = ?



and then add the parameter:

php:
$Categories->bindParam("s", "".$_SESSION['SearchMan']  ."", "1"); //manparam



And then maybe add this to the top of the page in case they hadn't set the manufacturer yet:

php:
<?php

if (!isset($_SESSION['SearchMan'])) $_SESSION['SearchMan'] = "1";
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

perfect. many thanks Ray

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