Skip to main content
Participant
April 21, 2007
Question

Php problem

  • April 21, 2007
  • 1 reply
  • 287 views
Hi!
I would like to ask about some solution for my problem.
I want to generate a number randomly but the number must not equal the ones in my database.
This is important couse if somebody upload a picture a number is generated, but how do i write the image path for the picture if i don't no what number's been generated?
Thank you in advance.
This topic has been closed for replies.

1 reply

Inspiring
April 21, 2007
Jose 123 escreveu:
> Hi!
> I would like to ask about some solution for my problem.
> I want to generate a number randomly but the number must not equal the ones in
> my database.
> This is important couse if somebody upload a picture a number is generated,
> but how do i write the image path for the picture if i don't no what number's
> been generated?
> Thank you in advance.
>
Why not use "microtime"?

http://www.php.net/manual/en/function.microtime.php

http://www.educar.pro.br/a/dttime/index.php?pn=14&tr=17

http://www.educar.pro.br/a/dttime/index.php?pn=11&tr=17

http://www.educar.pro.br/a/math/index.php?pn=39&tr=41

--
zerof
http://www.educar.pro.br/
Apache - PHP - MySQL - Boolean Logics - Project Management
----------------------------------------------------------
Você deve, sempre, consultar uma segunda opinião!
----------------------------------------------------------
Deixe todos saberem se esta informação foi-lhe útil.
----------------------------------------------------------
You must hear, always, one second opinion! In all cases.
----------------------------------------------------------
Let the people know if this info was useful for you!
----------------------------------------------------------
Jose_123Author
Participant
April 21, 2007
And how should i use this? Sorry I don't speak spanish