diff --git a/Interface/dbcon.php b/Interface/dbcon.php new file mode 100644 index 0000000000000000000000000000000000000000..de2628b1b59618dd5ea3662b915bf38bc3399b2e --- /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 a5c691252ea46420bcc6779267b60f985a43da1f..dd519ad438e48a4af421855513acf04c0bd53659 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'])) {