I'm a bit new to PHP and MySQL. My problem is I have a website where people register monthly for our contest, and at the end of the month we select 3 winners from the list. When people register their entries are entered into a table. I am trying to find a script that will randomly select 3 rows from the table.
I know how to do a random number generator in PHP but I'm not sure how to apply that to my table but, the problem I see with that is that the amount of rows differ every month. If i use a standard number say 100, for the ceiling and then there are only 80 rows in the table, there's a problem.
So any help that is provided will be appreciated and thanks in advance for any advice/help.