Selecting multiple categories

Post Reply
KMandalia
Posts: 301
Joined: Fri Jul 09, 2004 3:50 pm

Selecting multiple categories

Post by KMandalia »

I have my website listed as first category and I do have several other categories as well. What I want to do is no matter what the selected category is, I always want to go to the first category and display 3 results for the user query and after that display results for the user's selected category. What I want to know is:


sql="from html
where Title\Description\Keywords\Meta\Body " $liketype " $$q
and Title like $$tq
and Url matches $$uq
and Depth <= $$dq
and Catno matches $$cq

is this the sql to get results corrsponding to a category? How can I hard code first category into it. I tried replacing cq with 1 etc. but doesn't work.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Selecting multiple categories

Post by mark »

Yes. That's the sql. That should work
and Catno matches '1'
Post Reply