Player Number in database [MYSQL]
#1

I wanted to give every person who registers at server a special ID in the database but how do i do this? :S Anyone an idea?
Reply
#2

Create new column inside table. Set it to any integer and mark Auto-increment. That will give specific ID to each Table entry.
Reply
#3

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Create new column inside table. Set it to any integer and mark Auto-increment. That will give specific ID to each Table entry.
Just a heads up, I find working with database ID's to be a bit difficult. I've always found that it's easier to use usernames as the primary index in the DB. However, if you were going to make something like a master account and then allow people to create secondary accounts, under that master account- DB ID's would be a good idea I suppose.
Reply
#4

Realcop i totally agree with you but since iam making this GM with integrated site it might be usefull... And i already got it fixed Thanks for trying to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)