minor fixes
This commit is contained in:
parent
daace699a6
commit
2ce4424db7
20 changed files with 674 additions and 621 deletions
|
@ -1,16 +1,17 @@
|
|||
<?php
|
||||
require(__DIR__ . "/../../libs/page.php");
|
||||
|
||||
function get_handler() {
|
||||
global $db;
|
||||
|
||||
$stmt = $db->prepare("SELECT * FROM main.follow");
|
||||
$stmt->execute([]);
|
||||
$result = $stmt->fetchAll(PDO::FETCH_DEFAULT);
|
||||
$result = array_reverse($result,true);
|
||||
require(__DIR__ . "/../../libs/page.php");
|
||||
|
||||
echo json_encode($result);
|
||||
}
|
||||
function get_handler()
|
||||
{
|
||||
global $db;
|
||||
|
||||
get_handler();
|
||||
?>
|
||||
$stmt = $db->prepare("SELECT * FROM main.follow");
|
||||
$stmt->execute([]);
|
||||
$result = $stmt->fetchAll(PDO::FETCH_DEFAULT);
|
||||
$result = array_reverse($result, true);
|
||||
|
||||
echo json_encode($result);
|
||||
}
|
||||
|
||||
get_handler();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue