User ID
Moderator: General Moderators
- SilverMist
- Forum Commoner
- Posts: 65
- Joined: Tue Mar 02, 2004 2:06 pm
- Location: Canada
- Contact:
User ID
Hey! When people join an online community, how do they get their ID to show up? I have my database set on ID, INT, auto_increment already. Now what do I do?
your already on the right path by having a auto_inc field to assign a different number to each new coming row of data (each new user)
I suggest your next step is to look into cookies, when they sign-up, plant a cookie on their computer to store the username.
check out: http://us4.php.net/manual/en/function.setcookie.php for info.
you can also use sessions, or a combo of both =]
I suggest your next step is to look into cookies, when they sign-up, plant a cookie on their computer to store the username.
check out: http://us4.php.net/manual/en/function.setcookie.php for info.
you can also use sessions, or a combo of both =]