Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php session_start();
- include('includes/config.php');
- //$query="select * from motor_ins_check where insurance_company ='$_SESSION[org]';
- $result = $mysqli->query(CALL clientele('$_SESSION[org])') or die($mysqli->error.__LINE__);
- $arr = array();
- if($result->num_rows > 0) {
- while($row = $result->fetch_assoc()) {
- $arr[] = $row;
- }
- }
- # JSON-encode the response
- $json_response = json_encode($arr);
- // # Return the response
- echo $json_response;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement