yuniar Thank you for this! The code you gave threw an error, so I went back into the file and updated only the new lines, and this below worked without any errors:
$date_created = date("Y-m-d H:i:s");
$query = "INSERT INTO `".MF_TABLE_PREFIX."form_{$form_id}_approvals`(
date_created,
record_id,
user_id,
ip_address,
approval_state,
approval_note)
VALUES(?,?,?,?,?,?)";
$params = array($date_created,$entry_id,$user_id,$ip_address,$approval_state,$approval_note);
mf_do_query($query,$params,$dbh);
Is there an advantage of using the SQL timestamp as opposed to the web server timestamp?
Thanks again!