// Make a MySQL Connection
$query = "SELECT comcs , SUM(comcs) As Sumcomcs FROM customer";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
echo $row["Sumcomcs"];
// Make a MySQL Connection
$query = "SELECT comcs , SUM(comcs) As Sumcomcs1 FROM customer "
;$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
echo $row["Sumcomcs1"];
echo '.$Sumcomcs.'+'.$Sumcomcs1.'.$Sumcomcs+$Sumcomcs1;
?>
<?php
// Make a MySQL Connection
$query = "SELECT class, count(class) As Sumclass FROM customer";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
echo $row["Sumclass"];
?>