From 25a4f1eb9469a64236d5a7a822e740aed9963a03 Mon Sep 17 00:00:00 2001 From: Tina <tas3318@ic.ac.uk> Date: Sat, 26 Jan 2019 19:03:55 +0000 Subject: [PATCH] M --- Interface/dbcon.php | 3 +++ Interface/home.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Interface/dbcon.php diff --git a/Interface/dbcon.php b/Interface/dbcon.php new file mode 100644 index 0000000..de2628b --- /dev/null +++ b/Interface/dbcon.php @@ -0,0 +1,3 @@ +<?php +$link = mysqli_connect("localhost", "root", "", "myfridge"); +?> \ No newline at end of file diff --git a/Interface/home.php b/Interface/home.php index a5c6912..dd519ad 100644 --- a/Interface/home.php +++ b/Interface/home.php @@ -21,7 +21,7 @@ </head> <body> <?php - require_once 'con.php'; + require_once 'dbcon.php'; session_start(); if (isset($_POST['username'])) { -- GitLab