![]() |
Function to check user logged in
Ok guys I'm wanting to write a seperate PHP function that'll be used whenever it is to be checked that a user is logged in and pass their username into a variable.
Currently it's like this... PHP Code:
The problem is when I goto call the function from another page... PHP Code:
Fatal error: Call to undefined function: query_first() in ...../public_html/forum/includes/functions.php on line 938 If I use the above code in its own file without using it as a function it works like a dream. Any advice is appreciated. Cheers |
I think you can't use global.php inside a function. All variables will be out of scope.
|
Thats a pain.
Does anyone have any suggestions as to how I could put something like this into a function? |
All times are GMT. The time now is 06:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|