I have 4 columns: value_id
, customer_id
, name
, and score
Now I have the customer_id
and I want to get the rank by sorting the score values in DESC order
This is the MySQL command I have in my page
http://livetut.com/game/riddlehunt/score/list.php?start=0
$query2=" SELECT * FROM ridd ORDER BY score DESC ";
$count=$dbo->prepare($query2);
$count->execute();
$nume=$count->rowCount();
I want to get your rank from the customer_id
which is unique for every user
I do not want to use the select statement again can i add some thing to the $query2 to get the value