This topic is locked

After Record Updated - Email with only CHANGED Fields

10/26/2010 11:57:12 PM
PHPRunner General questions
D
DigitalDean8 author

Hello, I would like to generate an email after any edit that contains only data fields that have changed since the last edit. I have the "Send Email with New Data" code running but that sends all the fields. How can I code the logic of comparing the old field values with the new field values within that event loop? Here is my current code:
foreach($values as $field=>$value)

$msg.= $field." : ".$value."
"."\r

";
Can anyone help with that comparison?