View Single Post
Old 08-09-2008, 06:40 PM   #4 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Im sure its because you didn't quote the row/table names so they will act as keywords to the query, try this:

PHP Code:
$sql 'UPDATE `news` SET `valid` = 1 AND `cat_id` = ' $cat ' WHERE `id` IN (' $ids ')'
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote