I am getting sum of all cells in column with following query..
$result = mysql_query("select SUM(previous_balance) as balance from table_name ");
$row = mysql_fetch_assoc($result);
$item_number = $row['balance'];
$total1 = $item_number ;
echo $total1;
But I want to Omit last cell value in SUM. How can I do it ?