Welcome Guest, Not a member yet? Register   Sign In
What the best way to.....
#5

[eluser]limit[/eluser]

If your already using sessions: When a user logs in, you can just make a function to pull the username from the user table and then store it in the session.

(eg: select username from users where user_id = $user_id

Why your able to login to both admin and the user side depends on how you setup your database and code. There is not enough info to help you with that.


Messages In This Thread
What the best way to..... - by El Forum - 01-28-2012, 12:16 PM
What the best way to..... - by El Forum - 01-28-2012, 12:29 PM
What the best way to..... - by El Forum - 01-28-2012, 12:53 PM
What the best way to..... - by El Forum - 01-28-2012, 03:17 PM
What the best way to..... - by El Forum - 01-28-2012, 04:08 PM
What the best way to..... - by El Forum - 01-29-2012, 03:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB