I want to order the "rank" but it doesnt work, I tried many things but i cant find a solution to this.
$query = $handler->query("SELECT * FROM login ORDER BY rank DESC WHERE rank > 4 AND rank < 7 LIMIT 10");
- How can I get the code above to work properly?
Things I have tried:
- putting
ORDER BY rank DESC
at the end, and; - removing
DESC
, but that also did not work.
I have no idea how to fix this since the webpage does not even load upon requesting it.