I have an array of id numbers ($catids). I would like to select from the
mysql database all records where cid is in that array.

This syntax fails:
select * from categories
where cid in $catids

What is the correct way to do this? It can be done outside of a loop, can't
it?

c

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to