You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- <?php
- /*
- Author:ZSQ
- Compeny:Spiders Travel
- */
- require_once '../../Common/Mysql.php';
- header("Access-Control-Allow-Origin:*");
- $stationId=isset($_POST['stationId'])?$_POST['stationId']:'';
- $pdo=conn();
- $sql="CALL SP_LINE_STATION_INFO(".$stationId.");";
- $result=$pdo->query($sql);
- $data=array();
- do{
- $rowset=$result->fetchAll(PDO::FETCH_ASSOC);
- if($rowset){
- $data[]=$rowset;
- }
- }while ($result->nextRowset());
- $jason_array = array();
- if(count($data) == 1){
- $jason_array["code"] = $data[0][0]['errorcode'];
- $jason_array["info"] = $data[0][0]['errorinfo'];
- $jason_array["list"] = "";
- }else{
- $jason_array["code"] = $data[1][0]['errorcode'];
- $jason_array["info"] = $data[1][0]['errorinfo'];
- $jason_array["list"] = $data[0][0];
- }
-
- echo json_encode($jason_array);
- ?>
|