"; } else { $newid = formSubmit("form_intakeverslag", $_POST, $_GET["id"], $userauthorized); addForm($encounter, "Psychiatric Intake", $newid, "intakeverslag", $pid, $userauthorized); //echo "debug :: insert
"; } //get timestamp $result = sqlQuery("SELECT autosave_datetime FROM form_intakeverslag WHERE pid = ? AND groupname = ? AND user= ? AND authorized= ? AND activity=1 AND id= ? AND autosave_flag=1 ORDER by id DESC limit 1", array($_SESSION["pid"], $_SESSION["authProvider"], $_SESSION["authUser"], $userauthorized, $newid )); //$timestamp = mysql_result($result, 0); //output timestamp echo txl('Last Saved') . ': ' . text($result['autosave_datetime']);