
November 6th, 2012, 03:40 PM
|
|
Registered User
|
|
Join Date: Jul 2010
Posts: 5
Time spent in forums: 1 h 51 m 34 sec
Reputation Power: 0
|
|
|
Well r937 I would say BULLSEYE. I use a query in a combination with PHP. From PHP I sent a SQL-query to MySQL, which than has a number of rows he can return (count(*)). Than I'll use Rand(1,<number of returning rows>) to create a random number. And than fetch the row from the database equaling the number we just created. But if we could skip all of this and build it all in in one query than it would just be great. Thats why the review from cafelatte looks appealing, but I do not know if it returns just one row.
|