the list in your statement needs commas


$query = "SELECT ad_id, text_extra, life FROM help_wanted WHERE ad_id in(".join(',', @id_set).")";


On Saturday, November 23, 2002, at 08:30 PM, Mariusz wrote:

I sent the following mysql query and got an error:(

SELECT ad_id, text_extra, life FROM help_wanted WHERE ad_id in(@id_set)

It prints correctly as:
SELECT ad_id, text_extra, life FROM help_wanted WHERE ad_id in(20 19 14)

but the whole idea doesn't work; what am I missing?

Mariusz

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to