Database Update Question |
[eluser]LuckyFella73[/eluser]
What I meant was: In your view file you have the form tag: Code: <?= form_open('controller_update/method_update/'.$id_to_update);?> By submitting the form via your button, the form send the post data to your controller - for example: www.yoursite.com/controller_update/method_update/12 In your method you get the value using: Code: $id_to_update = $this->uri->segment(3) |
Messages In This Thread |
Database Update Question - by El Forum - 12-12-2007, 10:51 AM
Database Update Question - by El Forum - 12-12-2007, 10:58 AM
Database Update Question - by El Forum - 12-12-2007, 11:13 AM
Database Update Question - by El Forum - 12-12-2007, 11:14 AM
Database Update Question - by El Forum - 12-12-2007, 11:40 AM
Database Update Question - by El Forum - 12-12-2007, 11:45 AM
Database Update Question - by El Forum - 12-12-2007, 11:52 AM
Database Update Question - by El Forum - 12-12-2007, 11:54 AM
Database Update Question - by El Forum - 12-12-2007, 12:04 PM
Database Update Question - by El Forum - 12-12-2007, 12:31 PM
Database Update Question - by El Forum - 12-12-2007, 12:36 PM
Database Update Question - by El Forum - 12-12-2007, 01:24 PM
Database Update Question - by El Forum - 12-12-2007, 01:44 PM
Database Update Question - by El Forum - 12-12-2007, 01:56 PM
Database Update Question - by El Forum - 12-12-2007, 02:05 PM
Database Update Question - by El Forum - 12-12-2007, 02:29 PM
Database Update Question - by El Forum - 12-12-2007, 02:36 PM
Database Update Question - by El Forum - 12-12-2007, 05:58 PM
Database Update Question - by El Forum - 12-12-2007, 07:02 PM
|