[Phplib-users] db->nextid()
Brought to you by:
nhruby,
richardarcher
From: Aric C. <gre...@pe...> - 2002-10-21 23:51:22
|
I just happened across this function. I'm assuming that this is meant as an alternative to an auto increment field? Or to generating a random and hopefully unique number? I'm rewriting a project that uses a lot of MD5() calls to get unique numbers for things like categories and such. I thought to myself why not just use auto increment in the database. I had read that the MD5 technique was being used specificaly to reduce possible colisions when inserting new records over using auto increment. Is this nextid() function meant to solve the same problem? Because I rather like it as opposed to MD5 which returns a big long ugly string... |