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

315 Like 38 Dislike
Previous php-forum Next php-forum
Other php-forum

Executing an exe
Hi. I have some bizarre problem with exec (other any other method) to launch exe's. I am making a ga

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

PHP page is blank
Hi Everyone,

I have a site in which I am able to open the first PHP webpage in my browser but

Looking for help reading a .txt or .ini file and outputting the info.
I have a file called Info.ini and It has the following info:
Code: [General]
Online=0
I wou

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

Need help adding a timestamp to my filename/variable
Hello,

I'm kind of stupid when it comes to php and I need a tiny bit of help. I've got a f

Echo multiple lines of html code
Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

RSS feed - FeedList for WordPress
Hi,

I'm trying to alter the FeedList plugin for WordPress so that I can click on the title of

Convert array to string and write to csv file
I am looking to write a MySQL query to a csv file.

At the minute I:

check for the orig

Passing vars to the DB
I have 3 small testing tables:

ID TYPE
1 pepperoni
2 C. bacon
3 taco

ID TY

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