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

(11-16-2016, 10:23 PM)sheenam Wrote:
(11-16-2016, 06:07 AM)php_rocs Wrote: @sheenam  - it appears that when you click the edit button for a specific taxid.  You are not passing the specific taxid to your model to only pull that specific record.  Instead you are getting all the records.  Your call to the edit controller should include the taxid that you wish to edit.  Your model function should have a taxid parameter and only return 1 record.

ok ok but my edit button and the form m opening both redirect to different functionalities how can i pass ids. thru the button edit

edit button :

 <td><a data-toggle="modal"   data-target="#editModal">Edit</i></a></td>

and edit form:

  <?php echo form_open("settings/tax/updatetaxes?t_id=".$row->t_id,['class'=>'form-horizontal panel' , 'method'=> 'POST']); ?>

     
   <div class="form-group">

plz reply m still notgetting the result .
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB