| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Need Ticket Number generating and updating in mysql php script needed|
| 4:28 pm on Oct 5, 2012 (gmt 0)|
I am back with the another requirement.
I want a PHP code which need to generate a Auto increment number unique number with reauired feilds please let me know who i can code this scrip.
| 7:22 pm on Oct 14, 2012 (gmt 0)|
Auto incremented number? Or unique number? An auto-incremented number should be a unique number but you could have a unique number that is NOT an auto-incremented number.
| 5:35 am on Nov 1, 2012 (gmt 0)|
If the site won't be busy, just use time(), it will change every second to a new unique number. Of course, two people visiting the same second will be a problem!
You could use ip2long()+time(); that will give you a unique number per IP per second.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved