[eluser]umefarooq[/eluser]
Hello waqar
your add and edit are two different function of your controller, if you are using form helper for your form development in add function leave blank value section, while in edit function put your fatched records value
add function
Code:
$data['title'] = array('name'=>'name','id'=>'name');
$this->load->view('form',$data);
edit function
Code:
$row = fetch record from model;
$data['title'] = array('name'=>'name','id'=>'name','value'=>$row->title);
$this->load->view('form',$data);
and your view
Code:
<?=form_input($title)?>
try this it will work