$sql=mysql_query('select sum(maas) as toplam_maas from personel'); $result=mysql_fetch_array($sql); echo $result['toplam_maas'];