You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
310 B
PHP
15 lines
310 B
PHP
<?php
|
|
|
|
require 'required.php';
|
|
require 'dieifnotloggedin.php';
|
|
|
|
$from = $_GET['from'];
|
|
require 'readfrom.php';
|
|
|
|
$id = $_GET['id'];
|
|
if (is_empty($id)) {
|
|
sendError('Missing item ID!');
|
|
}
|
|
|
|
$results = $database->select($from, '*', ['id' => $id])[0];
|
|
die(json_encode(['status' => 'OK', 'results' => $results])); |