Tagged: codeigniter

0

Codeigniter insert if not exist and update if not

  [amazon_link asins=’B078LQ1W9Q,B077WY86ZT,B073Q5R6VR,B074DYBT2K,B01A8OD3S8,B078JVYMV1,B07CRGDR8L,B01ERHNUY4′ template=’ProductCarousel’ store=’urfusion-21′ marketplace=’IN’ link_id=’ 7530ba6e-6712-11e8-a101-a7a0382ddef9′] First you need to check whether the user or data is exits or not. then you can perform the update and insert operation. $this->db->where(‘user_id’,$id); $q =...