Page 1 of 1

User ID

Posted: Thu Mar 11, 2004 3:27 pm
by SilverMist
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?

Posted: Thu Mar 11, 2004 4:40 pm
by tim
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 =]