Buenas,
Realizo lo siguiente:
Código PHP:
$result=mysql_query("select SUM(PUNTOS) AS TOTAL
from RANKING where DNI_DEPORTISTA = '$dni_A' and
ID_TORNEO= '$id_torneo'",$link)or die(mysql_error());;
Y lo que no sé es cómo recojer el total de "puntos" que me ha sumado (si es que el SELECT está bien escrito).
¿Tendría que hacer
$row = mysql_fetch_array($result);
$total = $row["TOTAL"];
pese a que en mi DB no tengo ningún campo llamado "TOTAL"?