Hi to all!
Finally i did it!
I solved my problem, the result is the number of the row where record $name is. This is the code:
$result = mysql_query("SELECT name,points from table ORDER BY points DESC",$db);
$pos=1;
if ($myrow = mysql_fetch_array($result)) {
do {
if ($myrow["name"] == $name) {
echo $pos;
} else {
$pos=$pos+1;
}
} while ($myrow = mysql_fetch_array($result));
Thanks to all helped my with this!
:-D