Creating a UserID Variable in the Session
OK guys
Maybe my first question was not very clear, sorry for that. So here’s my problem.
Situation:
MySql Database contains: Username, Password & UserID
When the user logs in, their username is checked by the session and registered in the session variable. But I think this is captured from the text field when they login.
When the user makes a comment or other interaction with the site, their user name is logged from the session with the comment.
I would also like to have their UserID logged from the MySql Database.
How can I do this?
Thanks in advance
|