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.
23 lines
385 B
23 lines
385 B
<?php |
|
header("Access-Control-Allow-Origin: *"); |
|
|
|
include '/home/yimian/www/settlement/func/functions.php'; |
|
|
|
$conn = db__connect(); |
|
$total_arr = Array(); |
|
|
|
|
|
$sql = "select * from detail order by id DESC"; |
|
$result = $conn->query($sql); |
|
|
|
while($row = $result->fetch_assoc()) { |
|
array_push($total_arr, $row); |
|
} |
|
|
|
echo json_encode(array( |
|
"code" => 200, |
|
"data" => $total_arr |
|
)); |
|
|
|
|
|
|
|
|