This code will delete any record it finds with a clientid of either 1,2,3,4 and an factorid of 71.
1 2 3 4 5 6 |
$myrowid = array('1','2','3','4'); $myrowid = implode("','", $myrowid); $sql = "DELETE FROM tasksdone WHERE clientid IN ('".$myrowid."') and factorid = '71' "; |