codice:
$colname_Recordset3 = "-1";
if (isset($_GET['recordNUMERO_TESSERA_SOCIO'])) {
$colname_Recordset3 = (get_magic_quotes_gpc()) ? $_GET['recordNUMERO_TESSERA_SOCIO'] : addslashes($_GET['recordNUMERO_TESSERA_SOCIO']);
}
mysql_select_db($database_palestra, $palestra);
$query_Recordset3 = sprintf("SELECT SUM(quota_annuale) as totale1,SUM(quota_mensile) as totale2,SUM(variazione_attività) as totale3,SUM(quota_annuale) + SUM(quota_mensile) + SUM(variazione_attività) as totale FROM soldi WHERE numero_tessera_socio = '%s'", $colname_Recordset3);
$Recordset3 = mysql_query($query_Recordset3, $palestra) or die(mysql_error());
$row_Recordset3 = mysql_fetch_row($Recordset3);
$totalRows_Recordset3 = mysql_num_rows($Recordset3);
codice:
echo $row_Recordset3[3];
Perche'funziona solo per il 1° record,mentre x gli altri non restituisce niente?