View Single Post
Old 07-04-2008, 11:36 AM   #4 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Hey

As far as I know theres no command to "updte all the rows" like you can select all rows in a statement.

So you need to do something like:

PHP Code:
$sql 'UPDATE `table` SET `n1`, `n2`, ..., `n50` = NULL WHERE `id` = \'' $something_unique '\' LIMIT 1;'
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
The Following User Says Thank You to Kalle For This Useful Post:
Dave (07-04-2008)