Puoi fare cosi
[code]
$query = "select a.codice, a.nome, sum(valore) "
. "from tabella1 a, tabella2 b "
. "where a.codice = b.codice";
$result = mysql_query($query);
[code]
Il numero delle righe lo trovi dopo avere eseguito la query con
$numeroRighe = mysql_num_rows($result);


Rispondi quotando