Last Updated: February 25, 2016
·
819
· 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);
}