Welcome Guest, Not a member yet? Register   Sign In
Random Query
#4

[eluser]jedd[/eluser]
I believe (but have not tested or confirmed) that it is preferable, for performance reasons, to query the database on the number of rows in the table, use a local PHP random function against that figure, and then extract that specific record from the database.


Messages In This Thread
Random Query - by El Forum - 12-10-2009, 12:06 PM
Random Query - by El Forum - 12-10-2009, 12:15 PM
Random Query - by El Forum - 12-10-2009, 04:02 PM
Random Query - by El Forum - 12-10-2009, 04:40 PM
Random Query - by El Forum - 08-27-2012, 05:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB