change_location.php 272 B

1234567891011121314
  1. <?php
  2. include 'con.php';
  3. //error handling
  4. ini_set('display_errors', 1);
  5. error_reporting(E_ALL);
  6. $toolID = $_POST['toolID'];
  7. $currLoc = $_POST['currLoc'];
  8. $sql = "UPDATE DTC_TOOL SET CURRENT_LOCATION = '{$currLoc}' WHERE TOOL_ID = '{$toolID}'";
  9. $res = sqlStm($sql);
  10. ?>