Last Updated: February 25, 2016
·
821
· shayneakt

Associative table new and old values

function assocdiff($dbvals,$formvals) {
$delete = array
diff($dbvals,$formvals);
$new = arraydiff($formvals, $db_vals);
return array('new'=>$new,'delete'=>$delete);
}