- Mine
- Tuesday, July 17th, 2007 at 2:28:27am MDT
- SELECT * FROM ranks WHERE rank_min <= '10' AND rank_special = '0' ORDER BY rank_min DESC LIMIT 1
- returns no results
- however
- SELECT * FROM ranks WHERE rank_special = '0' ORDER BY rank_min DESC
- returns all 5 ranks = 0.
- SELECT * FROM ranks WHERE rank_min <= '23' ORDER BY rank_min DESC LIMIT 1
- returns the row where rank_min is closest to 23.
- 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.
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.