save_data.php 506 B

123456789101112131415
  1. <?php
  2. include 'con.php';
  3. //error handling
  4. ini_set('display_errors', 1);
  5. error_reporting(E_ALL);
  6. $curr_time = date("d.m.Y h:i:s");
  7. $sql = "INSERT INTO DTC_TOOL_LC_EVENT (TLC_EVENT_ID,DATE_TIME,TOOL_ID,ACTION_ID,ARTICLE_ID,WORKER_ID,PRODUCTION_ORDER_ID,MACHINE_ID) VALUES (LCSEQ.NEXTVAL,TO_TIMESTAMP('{$curr_time}','DD.MM.YYYY HH:MI:SS'),'{$_POST['toolID']}','{$_POST['actionID']}','{$_POST['articleID']}','{$_POST['workerID']}','{$_POST['orderID']}','{$_POST['machineID']}')";
  8. $res = sqlStm($sql);
  9. ?>