Hi,
I have 3 fields (number format) in 3 different tables. I would know the sum into another table field through the calc element. So I wrote the following code:
It is not working. Where's the mistake?
I have 3 fields (number format) in 3 different tables. I would know the sum into another table field through the calc element. So I wrote the following code:
PHP:
<?php $query=mysql_query("SELECT quantity FROM tabella1 WHERE =$_GET['62']");("SELECT quantity FROM tabella2 WHERE =$_GET['63']");("SELECT quantity FROM tabella3 WHERE =$_GET['64']");
$array=mysql_fetch_array($query);
$quantity_tabella1=$array;$quantity_tabella2=$array;$quantity_tabella3=$array;
$somma=$quantity_tabella1+$quantity_tabella2+$quantity_tabella3;
echo $somma;?>
It is not working. Where's the mistake?