![]() |
Insert Batch with emails - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Insert Batch with emails (/showthread.php?tid=53569) |
Insert Batch with emails - El Forum - 07-30-2012 [eluser]JamieBarton[/eluser] Hi guys I'm creating a form to invite my friends to an event I'm creating, however when I currently invite the users I'm just using a foreach loop on the $_POST['friend'] checkboxes, the values contain their ID. Then to insert, I'm just doing $this->db->insert(array(etc....)); However, I want to use the insert batch, how would I construct this? The user guide hasn't been much help when I'm trying to figure this out using Active Record. I also want to send emails to the invites friends (if they have in their profiles receive emails allowed). Any help would be appreciated ![]() Regards, Jamie |