Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ajax_add_notes.php 370B

123456789101112131415161718192021222324252627
  1. <?php
  2. if (!check_perms('admin_reports') || empty($_POST['id'])) {
  3. print
  4. json_encode(
  5. array(
  6. 'status' => 'failure'
  7. )
  8. );
  9. die();
  10. }
  11. $ID = (int)$_POST['id'];
  12. $Notes = $_POST['notes'];
  13. $DB->query("
  14. UPDATE reports
  15. SET Notes = ?
  16. WHERE ID = ?", $Notes, $ID);
  17. print
  18. json_encode(
  19. array(
  20. 'status' => 'success'
  21. )
  22. );
  23. die();