Generating unique numbers using php


Posted on 16th Feb 2014 07:03 pm by admin

Hi,
I need help in generating unique number using php.I tired using rand() in php.But, by using rand() method,the generated values are repeating.I want unique numbers in my application.
Every time in loop,i need a unique number.
If anybody knows of generating unique numbers,pls reply AEAP.


Thank u inadvance

No comments posted yet

Your Answer:

Login to answer
315 Like 38 Dislike
Previous forums Next forums
Other forums

Unifying logins of two different scripts
I have two different game scripts which I want to embed on my own site. The problem is I don't want

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

The type or namespace name 'ServiceModel' does not exist in the namespace 'System'
When I locally run the website, it works just fine, but when I uploaded it to the hosting environmen

this code is not working????
it says this error.. Warning: Division by zero in ..

the variables are correct, so why is th

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

confused between ' ' and " "
there is a php i set:
$begin_date_query = mysql_query( "SELECT SUBDATE(due_date, INTERVAL $d

Having a problem get the selected item from a drop down menu
I have been looking at this for days now.

I have a drop down menu that get it's values from a

Help Optimizing code
Good Morning,

I wrote a small import function for a website of mine and I know there has to b

Storing Values taken from a DB...
Using this code it will generate a short list from my database

<?php
mysql_connect

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash