adesso ho fatto in qyesto modo, ho tolto il campo in più, ma purtroppo anche non restituendomi errori, non mi da risultati...faccio cosi:
codice:
$qTot = (" SELECT
SUM(Quantita_A) as Q_A
from TB_A
where Prefisso_A IN ('1','2','3','4','5') and
Q_A = '204' and F_A = '1' and S_ = 'a'
UNION
SELECT
SUM(Quantita_B) as Q_B,
from TB_A
where Q_A = '204' and F_A = '1' and S_ = 'a'
UNION
SELECT
SUM(Quantita_D) as Q_D
from TB_A
where Prefisso_D IN ('6','7') and
Q_A = '204' and F_A = '1' and S_ = 'a');
$row = mysql_query($qTot);
while ($Riga = mysql_fetch_array ($row)){
$nQ_A= $Riga['Q_A'];
$nQ_B= $Riga['Q_B'];
$nQ_D= $Riga['Q_D'];
}
echo $nQ_A . "
";
echo $nQ_B . "
";
echo $nQ_D . "
";
Perchè?
grazie ancora