1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php global $dbh;
require_once('../../inc/configure.php'); //var_dump(!empty($_POST["actionCode"]), $_GET, isGet(), $_POST, isPost()); //throw new Exception("sql prepare statement failure: $sql"); //Ajax Function //if(!empty($_POST["actionCode"])){ //Get record if ( $_GET["actionCode"] == "customer" ) { $sql = "select * from v_cm_customer_support where cust_id = ?"; } if ( $_GET["actionCode"] == "teacher" ) { $sql = "select * from sys_login where id = ? and deleted = 0"; } $result = tableInfo::recordData($sql, $_GET["id"], "Y"); //$rst = $_GET("actionCode") . " - " . $_GET["id"]; //$actCod = $_GET["actionCode"]; echo json_encode($result); //echo "taiman"; exit; //}
|