USING SUM

bhaskar_dave
Posts: 3
Joined: Mon Oct 22, 2001 3:13 pm

USING SUM

Post by bhaskar_dave »

Hi ,
I have a form submitting a select list values ( having multiple choise). to the search script.
Now I want to use that list in to sql query. so I am making it as a list.
<sum "'%s', " $productID>
<$searchID = (convert($ret, 'strlst'))>

where $productID is : abc3234 bdf3243 dfdc3434

so the result I am getting is :
'abc3234', bdf3243', dfdc3434',

How do I remove the last coma in the above list. Because when I am using that list in the query clause like:
select content from product_content where
product_id in ($searchID)

it doesn't filter the search instead return everything.

Any idea to remove the last comma from the list would be really help ful.

Thanks
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

USING SUM

Post by mark »

You asked this exact question via a tech support ticket and got an answer. Please only use one venue for any given question.