The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Please help urgent - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10) +--- Thread: Please help urgent (/showthread.php?tid=1005) |
Please help urgent - pahalprashant - 03-17-2018 I want to get the details like email id and userid of a logged in user how can i do so in php. Can someone please give a example php file Please help urgent - Brandin - 03-17-2018 $user is a global variable that you can access. Your best method for public pages is to call $user->isLoggedIn() first before calling any commands. $user-> lets you access any of the users information in the users table. |