View Single Post
Old Apr 3rd, 2007, 6:40 AM   #5
tAK
Programmer
 
Join Date: Mar 2007
Posts: 33
Rep Power: 0 tAK is on a distinguished road
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.
tAK is offline   Reply With Quote