simply use php function for generate uniqe id function is : uniqid() link for checking details : http://www.php.net/manual/en/function.uniqid..php Mein kaha rukta ho aarsh-o-farsh ki awaz se... Mujhe jana ha bohat oocha haad-e-paarwaz se ________________________________ From: rahul dongre <mady_dongre@xxxxxxxxxxx> To: php <php-objects@xxxxxxxxxxxxxxx> Sent: Fri, December 25, 2009 6:42:00 PM Subject: generat unique id in php hello all i want to generate a unique code for each customer that are going to register on my site. and each customer is identify by this unique code. plz suggest me how i generate unique code like this "CUS-123" The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo. com/ [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]