You are here: Re: random number « PHP Programming Language « IT news, forums, messages
Re: random number

Posted by Colin Fine on 10/13/05 22:53

Nicholas Sherlock wrote:
> VAL wrote:
>
>> How can I make an application form that generates a unique number
>> starting from 1001.?
>
>
> Your subject line says "Random number", and you are asking for a "Unique
> number". Which is it? A random number, or a number which is unique, or
> both?
>
> Cheers,
> Nicholas Sherlock

I interpreted this (despite the subject, which I didn't notice) as 'how
can I arrange that every time this page is run it will generate a
different number?'

If that is indeed the question, then you need to save the latest number
(or all of them, if they are indeed to be random rather than sequential)
locally on the server - either in a file or in a database.

Colin

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация