header info added
This commit is contained in:
11
header.inc.php
Normal file
11
header.inc.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: leanderschmedemann
|
||||
* Date: 02/03/2017
|
||||
* Time: 11:49
|
||||
*/
|
||||
|
||||
header("Content-Type: application/json; Charset=utf-8");
|
||||
|
||||
?>
|
||||
@@ -9,6 +9,7 @@
|
||||
//include include files
|
||||
|
||||
require_once('config.inc.php');
|
||||
require_once('header.inc.php');
|
||||
require_once('Database.php');
|
||||
|
||||
?>
|
||||
@@ -12,7 +12,6 @@
|
||||
$database = new Database();
|
||||
$result = $database->query('SELECT * FROM "Categories";');
|
||||
|
||||
print nl2br(print_r($name, true));
|
||||
print nl2br(print_r($result, true));
|
||||
echo json_encode($result);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user