I am trying to ramdomize the results so that everyone has a chance of being on the first page, but I don't know how to hold it after the first page, when I click on page 2, it randomizes the results again, and puts some of the ones on the first page on the second. Is there a way around this:
Here is a snippet of code:
$_REQUEST['page'];
if(!isset($_GET['page'])){
$page = 1;
} else {
$page = $_GET['page'];
}
$max_results = 20;
$from = (($page * $max_results) - $max_results);
$i=0;
if(($i%5)==1) print "<tr valign='top'>";
mysql_connect("");
mysql_select_db("");
$result = mysql_query( "SELECT * FROM realestateagents ORDER BY rand() LIMIT $from, $max_results");
$check_num = mysql_num_rows($result);
while ($a_row = mysql_fetch_array ($result) )
{