Skip to content

Instantly share code, notes, and snippets.

@bangonkali
Created September 28, 2012 16:35
Show Gist options
  • Save bangonkali/3800823 to your computer and use it in GitHub Desktop.
Save bangonkali/3800823 to your computer and use it in GitHub Desktop.
Some Code
$newitem['name'] = $this->clean($objPHPExcel->getActiveSheet()->getCell('B' . $row)->getValue());
$newitem['attrib'] = $this->clean($objPHPExcel->getActiveSheet()->getCell('D' . $row)->getValue());
if (!in_array($newitem['attrib'], $uniueattributes)) {
$uniueattributes[] = $newitem['attrib'];
}
$newitem['size'] = $this->clean($objPHPExcel->getActiveSheet()->getCell('F' . $row)->getValue());
if (!in_array($newitem['size'], $uniquesizes)) {
$uniquesizes[] = $newitem['size'];
}
$newitem['qty'] = $this->clean($objPHPExcel->getActiveSheet()->getCell('J' . $row)->getValue());
$newitem['desc'] = $this->clean($objPHPExcel->getActiveSheet()->getCell('L' . $row)->getValue());
$newitem['price'] = $this->clean($objPHPExcel->getActiveSheet()->getCell('H' . $row)->getValue());
$newitem['number'] = $this->clean($itemnum);
$newitem['unequal_qty'] = $newitem['qty'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment