get_actions.php 397 B

12345678910111213141516
  1. <?php
  2. include 'con.php';
  3. ini_set('display_errors', 1);
  4. error_reporting(E_ALL);
  5. $sql = "SELECT NAME_DE FROM DTC_ACTION";
  6. $actionList = json_encode(sqlStm($sql)["NAME_DE"]);
  7. $sqlAc = "SELECT NAME_DE FROM DTC_TOOLPART";
  8. $toolPart = json_encode(sqlStm($sqlAc)["NAME_DE"]);
  9. header('Content-Type:application/json');
  10. echo json_encode( array("actionList" => $actionList,"toolPart"=> $toolPart));
  11. ?>