beginTransaction(); foreach ( $_REQUEST['markEids'] as $markEid ) { dbQuery('UPDATE Events SET Cause=?, Notes=? WHERE Id=?', array( $_REQUEST['newEvent']['Cause'], $_REQUEST['newEvent']['Notes'], $markEid ) ); } $dbConn->commit(); $redirect = $_SERVER['HTTP_REFERER']; } ?>