ballhogjoni Posted April 10, 2007 Share Posted April 10, 2007 How do you assign a unique idenifier that i could save to my db to use later on in my script? Link to comment https://forums.phpfreaks.com/topic/46477-solved-how-to-assign-a-unique-idenifier/ Share on other sites More sharing options...
lead2gold Posted April 10, 2007 Share Posted April 10, 2007 md5(date()); is pretty unique... or just date() for that matter. if you have some session variables loaded (such as the user id, or something of that nature) you can concatinate that with the date too to make the # even more unique... md5(date().$_SESSION['userid']); Link to comment https://forums.phpfreaks.com/topic/46477-solved-how-to-assign-a-unique-idenifier/#findComment-226087 Share on other sites More sharing options...
ballhogjoni Posted April 10, 2007 Author Share Posted April 10, 2007 nice thank you so much! Link to comment https://forums.phpfreaks.com/topic/46477-solved-how-to-assign-a-unique-idenifier/#findComment-226105 Share on other sites More sharing options...
boo_lolly Posted April 10, 2007 Share Posted April 10, 2007 microtime(), session_id(), and hash() are all good. especially hash =). i love hash. Link to comment https://forums.phpfreaks.com/topic/46477-solved-how-to-assign-a-unique-idenifier/#findComment-226139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.