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
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.PHP Code:
$con = mysqli_connect('localhost', 'stuff', 'stuff', 'stuff');
// tried this as well $con = new mysqli(
My db connection works directly in the page
This is the error I am getting
Line 49 isFatal error: Call to a member function query() on a non-object in /home/content/51/10528751/html/login.php on line 49