Welcome Guest, Not a member yet? Register   Sign In
Forms displaying multiple times using for each loop
#7

(11-15-2016, 09:55 PM)sheenam Wrote:
(11-15-2016, 06:26 AM)php_rocs Wrote: @sheenam,

I don't see a model where you only get the data for a specific record (based on taxid).  When you click edit what  controller is called?

@php_rocks thanks for replying back as everyone is giving negative reply here. thanku so much.
this function for model
function gettaxid()
{
 
   $this->db->select('*');
 
   $this->db->from('tax_master');
 
   $query $this->db->get();    
    return $query
->result();
}

this for controller:
  public function taxlist() 
 
 {

 
        $this->load->model('insert_tax');  
     
         $data
['records']=$this->insert_tax->gettaxid();  
         
//return the data in view  
 
        $this->load->view('settings/vwTaxes'$data);  
 
}


and i need to call the update controller which is giving me this problem. how can i acheive the solution.
Reply


Messages In This Thread
RE: Forms displaying multiple times using for each loop - by sheenam - 11-15-2016, 10:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB