hello my ionic 2 app cannot load specific url to get json data form it mysql
this is my php code to get data form mysql database
this is my code
<?php //Importing Database Script require_once('dbConnect.php'); //Creating sql query $sql = "SELECT * FROM about"; //getting result $r = mysqli_query($con,$sql); //creating a blank array $result = array(); //looping through all the records fetched while($row = mysqli_fetch_array($r)){ //Pushing name and id in the blank array created array_push($result,array( "subject"=>$row['subject'], "id"=>$row['id'], "image"=>$row['image'], "description"=>$row['description'], )); } //Displaying the array in json format echo json_encode($result); mysqli_close($con); this is my code to load data from url Loadabout() { return this.http.get('URL') .map(res => res.json()) } thanks alot for help