From 2bb1ad6b09b87a3f9530172567d5fbb313653fcf Mon Sep 17 00:00:00 2001 From: Leander Date: Thu, 2 Mar 2017 11:53:02 +0100 Subject: [PATCH] header info added --- header.inc.php | 11 +++++++++++ includes.inc.php | 1 + register.php | 3 +-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 header.inc.php diff --git a/header.inc.php b/header.inc.php new file mode 100644 index 0000000..76700cc --- /dev/null +++ b/header.inc.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/includes.inc.php b/includes.inc.php index cf57016..5264098 100644 --- a/includes.inc.php +++ b/includes.inc.php @@ -9,6 +9,7 @@ //include include files require_once('config.inc.php'); +require_once('header.inc.php'); require_once('Database.php'); ?> \ No newline at end of file diff --git a/register.php b/register.php index 44e2c80..0e639f1 100644 --- a/register.php +++ b/register.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); ?> \ No newline at end of file