Can anyone tell me an easy way to create a script that chooses a random ID from my DB?
I can create a random script but can't restrict it to the maximum ID numbers.
For example I have 25 records in my DB and my currect code will pick ID 150. Of course there is no 150!
you can query the amout of objects in your database
so the random function would look like this:
rand(0, $database_objects);
just set the output of the query to the $database_objects variable....(or whatever you want to call it)
Use the MySQL function RAND().