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