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