get_tool_list.php 412 B

1234567891011121314151617
  1. <?php
  2. include 'con.php';
  3. ini_set('display_errors', 1);
  4. error_reporting(E_ALL);
  5. //centurio variables
  6. $article = $_POST['articleID'];
  7. //db
  8. $sql = "SELECT TOOL_ID FROM DTC_ARTICLE_TOOL WHERE ARTICLE_ID = '{$article}'";
  9. $res = sqlStm($sql);
  10. $toolList = $res["TOOL_ID"];
  11. $toolList = json_encode($toolList);
  12. //to centurio
  13. header('Content-Type:application/json');
  14. echo json_encode( array("toolList" => $toolList));
  15. ?>