Première MAJ
Nottoyage code PHP, Relocalisation des repertoires, MVC amélioré sans PHP Modification des liens JQuery, Bootstrap
This commit is contained in:
13
les_ecuries_de_la_boissiere/autre/json.php
Normal file
13
les_ecuries_de_la_boissiere/autre/json.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if (isset($_GET["table"]) && isset($_GET["email"]) && isset($_GET["mdp"])) {
|
||||
$selectAllWhere = $unController->selectAllWhere($_GET["table"], "email = '".$_GET["email"]."' AND mdp = '".$_GET["mdp"]."'");
|
||||
$result = json_encode(array($_GET["table"] => $selectAllWhere), JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);
|
||||
print($result);
|
||||
} else if (isset($_GET["table"])) {
|
||||
$selectAll = $unController->selectAll($_GET["table"]);
|
||||
$result = json_encode(array($_GET["table"] => $selectAll), JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);
|
||||
print($result);
|
||||
} else {
|
||||
echo "error";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user