Yahook
06-11-2005, 11:25 PM
There are two different ways to do it:
1) Using the query like this one:
$sql = "SELECT * FROM tablename
LIMIT $num1,$NUM_RESULTS";
where $num1 - random number from php script
2) Using the query like this one:
$sql = "SELECT * FROM tablename
ORDER BY RAND() LIMIT $NUM_RESULTS";
1) Using the query like this one:
$sql = "SELECT * FROM tablename
LIMIT $num1,$NUM_RESULTS";
where $num1 - random number from php script
2) Using the query like this one:
$sql = "SELECT * FROM tablename
ORDER BY RAND() LIMIT $NUM_RESULTS";