Tagged: Database

0

Codeigniter insert if not exist and update if not

  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 = $this->db->get(‘profile’); if ( $q->num_rows() > 0 )...

Configure ejabberd xmpp on ubuntu server Part-1 0

Configure ejabberd xmpp on ubuntu server Part-1

Configure ejabberd xmpp ubuntu server     After facing so many issues and investing so many hours I write below steps for configure ejabberd. In first tourial we learn how to configure ejabbere on...

export database table by php 0

export database table by php

export database table php Sometime there is need to export database table by php code. There is a very simple approach to do this.     /*******EDIT LINES 3-8*******/ $DB_Server = “localhost”; //MySQL Server...

recursive function getting parent child 28

recursive function getting parent child

recursive function getting parent child A recursive function is a function that calls itself during its execution. This enables the function to repeat itself several times, outputting the result and the end of each...