I have got data from mysql in php, and i want to send it to typescript using JSON. but when load the php page. nothing showed in the screen. It always shows a blank page.
$select ="SELECT * from `filiere`";
$run = mysqli_query($connect, $select);
$temp = array();
while($row=mysqli_fetch_row($run)) {
$temp[] = $row;
}
echo json_encode($temp);
from the code, it should show the data in json format.
what it is the problem?