Jump to content

Unique ID


The Little Guy

Recommended Posts

TLG,

 

What you propose will not necessarily be an auto-increment type thing.  I would suggest that you use both a normal 1->INTLIMIT column as well as the additional "unique" column you are looking for.  As for generating that unique key, you could search for functions that meet your specifications...  or another idea would be to make it 32 chars loing and make it a hash of certain data in the other columns.

Link to comment
https://forums.phpfreaks.com/topic/177986-unique-id/#findComment-938482
Share on other sites

 

How would that create a unique ID? " quote

 

The index type is primary - therefore unique.

 

If it was a varchar you would have to manually put something in the field.

 

Any who, I have thought of a new way to do things, kind of like youtube I am using "usernames" and an auto increment.

 

Basically I wanted a way for users to access certain pages without putting an ID number in the address bar but instead use a username (originally it was going to be a unique ID such as: "1S4JKF") to access the page. But I changed my mind, and I am now using a user name instead.

 

Sorry Guys :(

Link to comment
https://forums.phpfreaks.com/topic/177986-unique-id/#findComment-938823
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.