Customizing SMF > SMF Coding Discussion
Get a user name from simple portal page.
andreblue2u:
So i want to be able to get a person's username from within a simple portal php page. What would i do to do so?
Old Fossil:
What exactly are you trying to do?
andreblue2u:
i want to retrivve the current user on the page its self. to pass on as a variable to a sql query
Old Fossil:
As this is mod related you would be better to use the mods support topic or www.simpleportal.net
Arantor:
--- Quote from: andreblue2u on June 17, 2012, 07:57:16 PM ---i want to retrivve the current user on the page its self. to pass on as a variable to a sql query
--- End quote ---
Why, exactly?
Depending on what you're trying to use that query for 1) it might not even work and 2) odds are the user id is better to be used anyway (more reliable, faster for most things)
Let us know what you're trying to use it for and maybe we can provide you with better information on how to do it.
Navigation
[0] Message Index
[#] Next page
Go to full version