Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $response = array();
- require_once __DIR__ . '/db_connect.php';
- $db = new DB_CONNECT();
- $result = mysql_query("SELECT *FROM weltvonhalva") or die(mysql_error());
- $response["weltvonhalva"] = array();
- while ($row = mysql_fetch_array($result)) {
- // temp user array
- $weltvonhalva = array();
- $weltvonhalva["id"] = $row["id"];
- $weltvonhalva["nachricht"] = $row["nachricht"];
- array_push($response["weltvonhalva"], $weltvonhalva);
- }
- $response["success"] = 1;
- echo json_encode($response);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement