(Coding PHP with MySQL)
Fatal error: Cannot redeclare logged_in() (previously declared in C:\xampp\htdocs\Project\Func\user.func.php:9) in C:\xampp\htdocs\Project\Func\user.func.php on line 9
I'm making a function to check if a user is logged in. I declare the function as logged_in() {}
, but the function causes the error seen above, even though I've never declared it before.
The function didn't work when it was defined either, with an isset and a reference to MySQL code.