I am trying to do an include for my db connection with mysqli but cannot not find any examples of how do to it.
This is what I have
$con = mysqli_connect('localhost', 'stuff', 'stuff', 'stuff');
// tried this as well $con = new mysqli(
So what is the extra step that I need to take? I know there is something missing in my function but everything I have tried does not work.
My db connection works directly in the page
This is the error I am getting
Fatal error: Call to a member function query() on a non-object in /home/content/51/10528751/html/login.php on line 49
Line 49 is