First version of the WordsCloud site
This commit is contained in:
commit
8a6973fcb6
13 changed files with 1656 additions and 0 deletions
19
get.php
Normal file
19
get.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
include('db.php');
|
||||
$db = new DataBase();
|
||||
if (!$db->isInit()) {
|
||||
echo 'Error db init';
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isset($_GET['id'])) {
|
||||
echo json_encode(false);
|
||||
}
|
||||
$id = $_GET['id'];
|
||||
|
||||
if ($words = $db->getWordsMax($id)) {
|
||||
echo json_encode($words);
|
||||
} else {
|
||||
echo json_encode('No id');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue