Jump to content

Result Missing First Value


mcmuney

Recommended Posts

I'm having an issue where MySQL results is not showing the very first result, here's my code:

 

$sql = "SELECT b.winner,COUNT(b.winner) AS count, p.sci_url as pic FROM sc_battle AS b, sc_member_images AS p WHERE b.scm_mem_id = ".$current_user." AND b.winner = p.scm_mem_id AND sci_rating = 1 GROUP BY b.winner HAVING count>$wins ORDER BY count DESC LIMIT 11";

 

The code is pulling the correct data; however, it's missing one result. I have specified "LIMIT 11", but I see only 10 results. When I set LIMIT 9, I get 8 results. In every case, the very first result is not showing up.

 

Any thoughts on fixing this issue?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.