|
well.. i was making the connection into a function:
function dbconnect(){
$mysqli = new mysqli('localhost','root','password07');
$mysqli->select_db('mydatabase');
}
and i was then calling that function from the page that was loaded.. it kept failing. as RGCaldas noted, i just needed it at the top of the included file, and it would run.
|