With this update query if the id
is in chk_list
then I set checked=1
. I want if the id
isn't in the list to set chk_list=0
$update = "UPDATE data SET checked=1 WHERE id IN($chk_list)";
$qry = $db->query($update);
Is there any simple way after WHERE to set if?