Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

OrderBy Rand?

Hello. Currently i'm trying to get 10 random records out of my table. I figured doing the following would work, but it doesn't. Anyone give me some help?

$Games = $this->SQL->Select() ->From('Games') ->Limit($Limit) ->OrderBy('GameID', 'rand()');

Best Answer

Answers

Sign In or Register to comment.