08-03-2007, 03:07 PM
tu as essayé un truc du genre
Code PHP :
<?php
UPDATE ma_table SET
champ1 = CASE champ1
WHEN 1 THEN 0
ELSE champ1
END,
champ2 = CASE champ2
WHEN 1 THEN 0
ELSE champ2
END
WHERE champ1 = 1 or champ2 = 1