MySQL Forums
Forum List  »  Newbie

Re: Order by 'attribute' Random
Posted by: Stroppy Tux
Date: May 10, 2005 09:14AM

Hi Ian

$sql = 'SELECT * FROM `News` ORDER BY RAND() LIMIT 0, 30';

This should do the trick for you.

S.T.

Options: ReplyQuote


Subject
Written By
Posted
May 10, 2005 09:09AM
Re: Order by 'attribute' Random
May 10, 2005 09:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.