Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. $array = array(...over 29k IDs...);
  3. $update = array();
  4. foreach ($array as $line) {
  5. $update[] = array('id' => $line, 'spintax' => $this->SpinTax($string));
  6. ### $this->SpinTax parses the spintax from a string I have. It has to be generated for each row.
  7. }
  8. $this->db->update_batch('table', $update, 'id');
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement