Hello everyone.

Here just page refresh Counter++.

    $this->db->where('id', $id); 
    $cnt = $this->db->get('Job_Description');

    $new_cnt = $cnt+1;

    $data = array('Counter_field'=>$new_cnt);
    $query = $this->db->update('Job_Description',$data);

What is wrong with above Query..
Every time i want increment and go to update results store in DB.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.