Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.