How to sum two columns and get this value to insert in mysql

Topics: Developer Forum
Jan 31, 2013 at 8:14 PM
i have 2 columns "t" and "u" and i need to sum this columns to get a value for insert in mysql.

someone to helpme please.
Feb 1, 2013 at 12:00 PM
Iterate each cells and sum values
$Cols=array('U', 'T');
$F=$objPHPExcel->getActiveSheet();//$objPHPExcel is your complete Excel file, see the numerous examples if you have trouble with this.
foreach($Cols as $aCol){