commit | abbcb7ee196d2968260fb54107f09c260fc6a72f | [log] [tgz] |
---|---|---|
author | Andreu <andreuhuguet@gmail.com> | Sat Sep 21 18:22:14 2019 +0200 |
committer | Andreu <andreuhuguet@gmail.com> | Sat Sep 21 18:22:14 2019 +0200 |
tree | e9bf540c0b26a8c92c157409d8e881a80bb727fc | |
parent | ed49167d8b9244cb5ece91c2bdfb38fb52339cc8 [diff] [blame] |
Fully operational SQL
diff --git a/ajax/checkrequests.php b/ajax/checkrequests.php new file mode 100644 index 0000000..fb6e9a6 --- /dev/null +++ b/ajax/checkrequests.php
@@ -0,0 +1,14 @@ +<?php + require '../php/utils.php'; + $user = get_users($_GET['id']); + + echo '{ '; + $first = true; + foreach ($user as $prop => $value) { + if (!$first) echo ', '; + else $first = false; + if ($prop == "nomcomplet") echo '"'.$prop.'": "'.$value.'"'; + else echo '"'.$prop.'": '.$value; + } + echo ' }'; +?>