Hi - I have the follwoing code:
if (file_exists("dbconnect.inc") == true) {
echo "dbconnect file exists";
include ("cookiecheck.inc"); //code checks for existence of cookie and sets userlevel //
if ($userlevel != 1) { //allow only owner//
echo "You are not authorized";
die();
}
} else {
echo "dbconnect file does not exist";
}
This doesn't work for some reason. The page prints out BOTH echo statements (i.e. "dbconnect file exists dbconnect file does not exist")
messed up! Anyone tell me why?