Jump to content

LIMIT & RANDOM -- Issue With Return Results


shanejeffery86

Recommended Posts

NOTE: I did try the solution at the top of the forum, but could not get it to work.

 

Hey all.

 

My query is as follows:

 

SELECT acc_id, class, race, gender, current_level, pic_url, server, short_desc, featured, price FROM outbound_acc WHERE current_status='0' ORDER BY RAND() LIMIT 3

 

Now what is happening is that the query sometimes returns 3 results and sometimes returns 2 results.  It will never just continuously return 3.

 

What am I doing wrong?  I have a feeling that it has something to do with the interaction of the LIMIT and RANDOM setup.

 

Any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/168657-limit-random-issue-with-return-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.