db->query("truncate table tbl_acgroups"); foreach($importedGroups as $importedGroup): $this->db->insert("tbl_acgroups",$importedGroup); endforeach; ?>
acgroup_id [1] => acgroup_code [2] => acgroup_name [3] => created_on [4] => created_by [5] => remarks [6] => status [7] => display_order */ $dbGroup=new stdClass; $dbGroup->acgroup_id=$importedLine[1]; $dbGroup->acgroup_code=$importedLine[3]; $dbGroup->acgroup_name=$importedLine[4]; $dbGroup->created_on=dbDate($importedLine[5]); $dbGroup->created_by=$importedLine[6]; $dbGroup->remarks=$importedLine[7]; $dbGroup->status=$importedLine[8]; if(!in_array($dbGroup,$importedGroups)) $importedGroups[]=$dbGroup; return $importedGroups; } ?>