Hello,
I'm creating a module where I would like a logged in pilot to view ONLY their info.
I have based the module on the Roster module that has been referenced in the forums and tutorials (It's basically a copy of the Roster module showing extra columns that I added for different bank accounts).
Is there a variable that returns the users id, like '$whoami' or '$myid'? Something that returns who is accessing the page so they only see their information.
Thanks,
raptor
EDIT: I found that this works after much trial and error:
$query = "SELECT * FROM ".TABLE_PREFIX."pilots WHERE pilotid = ".Auth::$userinfo->pilotid."";