1234567891011121314151617 |
- <?php
- include 'con.php';
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- //centurio variables
- $article = $_POST['articleID'];
- //db
- $sql = "SELECT TOOL_ID FROM DTC_ARTICLE_TOOL WHERE ARTICLE_ID = '{$article}'";
- $res = sqlStm($sql);
- $toolList = $res["TOOL_ID"];
- $toolList = json_encode($toolList);
- //to centurio
- header('Content-Type:application/json');
- echo json_encode( array("toolList" => $toolList));
- ?>
|