Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Mine
Tuesday, July 17th, 2007 at 2:28:27am MDT 

  1. SELECT * FROM ranks WHERE rank_min <= '10' AND rank_special = '0' ORDER BY rank_min DESC LIMIT 1
  2.  
  3. returns no results
  4.  
  5. however
  6.  
  7. SELECT * FROM ranks WHERE rank_special = '0' ORDER BY rank_min DESC
  8.  
  9. returns all 5 ranks = 0.
  10.  
  11. SELECT * FROM ranks WHERE rank_min <= '23' ORDER BY rank_min DESC LIMIT 1
  12.  
  13. returns the row where rank_min is closest to 23.
  14.  
  15. why when i combine them they dont work?+

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right