![]() |
Why will my Form not update ?? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Why will my Form not update ?? (/showthread.php?tid=50334) |
Why will my Form not update ?? - El Forum - 03-22-2012 [eluser]vincej[/eluser] HI - The POST array which is uploading from my View looks like this: Code: Array Model: Code: function Updatelocation(){ View Code: <tr align="center"> MY Model is broken. First my dates need to be converted into Unix time, then they have to update the DB. Edit: The strtotime() is working but for some reason I can not get my data uploaded. My syntax is clearly wrong - But I can't see where. MANY MANY THanks for any help you might be able to give ! Why will my Form not update ?? - El Forum - 03-22-2012 [eluser]CroNiX[/eluser] The $date in your update() needs to be an array with a key that is the name of the field that it's supposed to update and the value is the value. Why will my Form not update ?? - El Forum - 03-23-2012 [eluser]vincej[/eluser] CroxNix - Many Thanks, It works ! - I am impressed by the stupid mistakes I make ! One very weird behaviour the s/w is exhibiting, which I am uncertain about, is how I might amend a human readable date in the form, like "31 Aug 2011" and I do submit, but 20% of the time the amendment does not 'take' ie it comes back with the old date. So I try again, or I try on a different field and it then does work. Is this the inadequacy of the strftime function ? Or perhaps, because my update() is not doing a batch update but rather individual fields ? Thanks ! |