Hi,
The code below was suggested on the Forum a few weeks ago and worked great, that is until I added..
AND (minimum_bid <=10 )
this has caused the radomised selection taking place and unsure why, without it...works great.
<code>
$auctionit = rand(1,$auctionnum);
}
//-- Set offset and limit for pagination
$limit = 20;
if(!$offset) $offset = 0;
$result = mysql_query ("SELECT *, RAND($auctionit) as randy
FROM test_data
WHERE (closed='0') AND (suspended = '0') AND (minimum_bid <=10 )
ORDER BY randy LIMIT 3");
</code>
cheers in anticipation
John
The code below was suggested on the Forum a few weeks ago and worked great, that is until I added..
AND (minimum_bid <=10 )
this has caused the radomised selection taking place and unsure why, without it...works great.
<code>
$auctionit = rand(1,$auctionnum);
}
//-- Set offset and limit for pagination
$limit = 20;
if(!$offset) $offset = 0;
$result = mysql_query ("SELECT *, RAND($auctionit) as randy
FROM test_data
WHERE (closed='0') AND (suspended = '0') AND (minimum_bid <=10 )
ORDER BY randy LIMIT 3");
</code>
cheers in anticipation
John