'failure' ) ); die(); } $ID = (int) $_GET['id']; $Notes = str_replace("
", "\n", $_GET['notes']); $Notes = db_string($Notes); $DB->query("UPDATE reports SET Notes = '$Notes' WHERE ID = '$ID'"); print json_encode( array( 'status' => 'success' ) ); die();