Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $array = array(...over 29k IDs...);
- $update = array();
- foreach ($array as $line) {
- $update[] = array('id' => $line, 'spintax' => $this->SpinTax($string));
- ### $this->SpinTax parses the spintax from a string I have. It has to be generated for each row.
- }
- $this->db->update_batch('table', $update, 'id');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement