Welcome to WebmasterWorld Guest from 54.196.214.35

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Need Ticket Number generating and updating in mysql php script needed

     
4:28 pm on Oct 5, 2012 (gmt 0)

New User

joined:Aug 29, 2012
posts: 16
votes: 0


Hi Friends,

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.

Regards,
Nani
7:22 pm on Oct 14, 2012 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 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)

Senior Member from MY 

WebmasterWorld Senior Member vincevincevince is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 1, 2003
posts:4847
votes: 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.