- Impact
- 19
PHP Notice [error]
Hey
first of all..i have a request..can i add someone who knows php on MSN? i am working on my project and i get stuck on alot of small errors..and it sucks to post them here all and wait for half an hour :p thanks
now heres the error thats causing me pain now
i turned on the error_reporting thing and i got these:
now i have no clue why i get them..heres the code on that line
database is a class..that i do include in sessions.php
and the configs array works on other files..for example index.php...but not here for some reason :-s
can anyone help me out?
Hey
first of all..i have a request..can i add someone who knows php on MSN? i am working on my project and i get stuck on alot of small errors..and it sucks to post them here all and wait for half an hour :p thanks
now heres the error thats causing me pain now
i turned on the error_reporting thing and i got these:
Code:
Notice: Undefined variable: database in C:\Program Files\xampp\htdocs\FM\include\session.php on line 338
Notice: Trying to get property of non-object in C:\Program Files\xampp\htdocs\FM\include\session.php on line 338
Notice: Undefined variable: database in C:\Program Files\xampp\htdocs\FM\include\session.php on line 338
Notice: Trying to get property of non-object in C:\Program Files\xampp\htdocs\FM\include\session.php on line 338
PHP:
$admin_level = $database->configs['admin_level'];
and the configs array works on other files..for example index.php...but not here for some reason :-s
can anyone help me out?






