Welcome to WebmasterWorld Guest from 107.22.14.254

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)



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)

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



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)

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



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month