I have table Users which contains columns: id, name, points, extra_points. How can I get position rank for specific user, when the rank is sum of points and extra_points?
For all users list rank Im using this query: "SELECT id, (points + extra_points) AS total FROM users ORDER BY total desc";
and the while loop with html ol
tag (so there is position number).
But I dont know how to show the rank for a sinlge user (in user profile page)?
Any help will be great.