Hi,
I wish to select three random auctions for display.
I have previously aquired the total live auctions and rand() them as below, which is inserted in the loop..
$randitem = rand(1,$auctionnum);
The result I get is the three auctions, but they are not randamised the same three are always displayed incremental and ascending...Could someone explain what I have goy wrong..
$result = mysql_query ( "SELECT * FROM AUCTION_auctions
WHERE closed='0'
AND suspended = '0'
ORDER BY '$randitem' LIMIT 3" );
Cheers in anticipation.
John.....AGAIN..hi
I wish to select three random auctions for display.
I have previously aquired the total live auctions and rand() them as below, which is inserted in the loop..
$randitem = rand(1,$auctionnum);
The result I get is the three auctions, but they are not randamised the same three are always displayed incremental and ascending...Could someone explain what I have goy wrong..
$result = mysql_query ( "SELECT * FROM AUCTION_auctions
WHERE closed='0'
AND suspended = '0'
ORDER BY '$randitem' LIMIT 3" );
Cheers in anticipation.
John.....AGAIN..hi