Page 1 of 1

Random numbers and database

Posted: Fri Jul 28, 2006 5:26 am
by nig
I am sorry for posting a dum question

I am trying to set up a PHP script that will get 6 random numbers (making sure all 6 are not the same)

And search a database for the numbers.

I am sorry to ask this but I do ASP script and want to learn PHP and understand it.

And I am not sure where to start

Thanks

Posted: Fri Jul 28, 2006 5:32 am
by choppsta
Try using the rand() function:
http://uk.php.net/manual/en/function.rand.php

Posted: Fri Jul 28, 2006 5:34 am
by JayBird

Posted: Fri Jul 28, 2006 6:25 am
by nig
Pimptastic wrote:This any help?

viewtopic.php?t=51996&highlight=random
It works thank you very much

Just go it to show the numbers or even get a datbase to search from them


But thet is cool thanka gain