SQL - Search specific and all
i have website searches predefined data. basically, pictures 2 different categories @ same time. 2 search list predefined. works great.
in database have statcode such clearance, best seller, special. have major category, such country art, christmas art, animal art, floral art,etc. when selects country -clearance, returns right thing. when select selection out of both columns selects right things.
the problem when selects "all" in category.
the default value of sql expression in recordset takes precident. if have set "0", looks "0". want when selects "all" want return in category , filter other. or if select in both, want every thing show.
please help..
if confusing, try explain more.
in database have statcode such clearance, best seller, special. have major category, such country art, christmas art, animal art, floral art,etc. when selects country -clearance, returns right thing. when select selection out of both columns selects right things.
the problem when selects "all" in category.
the default value of sql expression in recordset takes precident. if have set "0", looks "0". want when selects "all" want return in category , filter other. or if select in both, want every thing show.
please help..
if confusing, try explain more.
the principle you'd use like. eg
where category 'mm_colparam'
and use default of % parameter.
--
jules
http://www.charon.co.uk/charoncart
charon cart 3
shopping cart extension dreamweaver mx/mx 2004
where category 'mm_colparam'
and use default of % parameter.
--
jules
http://www.charon.co.uk/charoncart
charon cart 3
shopping cart extension dreamweaver mx/mx 2004
More discussions in Develop server-side applications in Dreamweaver
adobe
Comments
Post a Comment