maybe you only want to filter it by
$sid and use CASE to toggle the value of statusUPDATE profile
SET status = (CASE WHEN status = 'active' THEN 'inactive' ELSE 'active' END)
WHERE id = $id
0 Comments