如何在 insert_bunch 之后返回所有 ID?功能:
public function insert_slike($id, $slike, $folder, $polje, $tabela)
{
$slike = explode(',', $slike);
$i = 1;
$data = array();
foreach ($slike as $slk) {
$this->img_upload_resize($slk, $folder);
$data[] = array(
$polje => $id,
'path' => $slk
);
$i++;
}
$this->db->insert_batch($tabela, $data);
}