|
@@ -1,5 +1,20 @@
|
1
|
1
|
<?php
|
2
|
|
- header("Content-Type:application/json");
|
3
|
2
|
|
4
|
|
- echo json_encode(array("Message" => "Hello world;"));
|
|
3
|
+require_once('classes.php');
|
5
|
4
|
|
|
5
|
+// header("Content-Type:application/json");
|
|
6
|
+
|
|
7
|
+// echo json_encode(array("Message" => "Hello world;"));
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+$bdd = new Connector();
|
|
11
|
+
|
|
12
|
+$options = array(
|
|
13
|
+ "where" => array(
|
|
14
|
+ array("login", "=", "Dragavnir"),
|
|
15
|
+ ),
|
|
16
|
+ "order by" => array("score", "desc"),
|
|
17
|
+ "limit" => array(0, 10) // Ou array(10)
|
|
18
|
+);
|
|
19
|
+
|
|
20
|
+var_dump($bdd->Select("*", "scores", $options));
|