$result=mysql_query("SELECT sum(usuario) as suma from porra order by puntos ASC"); $rows=mysql_fetch_assoc($result); echo $rows['suma']; ?>