Switch from SQLite to PostgreSQL
This commit is contained in:
parent
69de37562f
commit
44226c4809
4 changed files with 23 additions and 11 deletions
2
get.php
2
get.php
|
@ -12,7 +12,7 @@ if (!isset($_GET['id'])) {
|
|||
}
|
||||
$id = $_GET['id'];
|
||||
|
||||
if ($words = $db->getWordsMax($id)) {
|
||||
if ($words = $db->getWordsRelative($id)) {
|
||||
echo json_encode($words);
|
||||
} else {
|
||||
echo json_encode('No id');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue