
jtedescojam
User
Aug 29, 2009, 6:12 PM
Post #1 of 6
(1186 views)
Shortcut
|
|
filtering listings
|
Can't Post
|
|
I know how to filter records using 'where' in the 'top viewer code'... for example... if I want to display all listings where the color is blue. However I am having difficulty figuring out an additional filter to display all listings where the color is blue and the size is large. so any record where the site is small and blue, it won't show... and a record that is large and red, it won't show. You get the idea.... Using the filter in the URL can't work for what I'm using this for... it needs to be in the viewer code. Here's what I have so far: 'where' => "color = 'blue' AND size <= 'large' ", the page works, but it's not filtering the second variable - size=large. John Tedesco Creative Director JAM Graphics
|