Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

Update_batch without escape?

$
0
0
Hello @ll,
have any Idea for escape false in update_batch?

//Für Single
PHP Code:
$this->db->set('field''field+1'FALSE);
$this->db->where('id'2);
$this->db->update('mytable'); 

//Multiple ???
PHP Code:
$data = array(
   array(
      
'id' => 'ID' ,
      
'field' => 'field+1' ,          //False?
      
'points' => 'points+1'       //False?
   
),
   array(
      
'id' => 'ID' ,
      
'field' => 'field+1' ,          //False?
      
'points' => 'points+1'       //False?
   
),
);

$this->db->update_batch('mytable'$data'id'); 

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>