CodeIgniter Forums
Help with Update in CRUD. - 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: Help with Update in CRUD. (/showthread.php?tid=28099)

Pages: 1 2 3


Help with Update in CRUD. - El Forum - 03-04-2010

[eluser]HSKrustofsky[/eluser]
Well, the information seems appear in the form, but can't seem to update any information. Any suggestions?

Sorry in advance for being a nuisance. Thank you for all your help as well.


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]xeroblast[/eluser]
try to var_dump() / print_r() the $_POST...


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]HSKrustofsky[/eluser]
Dont know how to do that.


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]xeroblast[/eluser]
after your code:

Code:
if ($_POST) {
  var_dump($_POST); // or print_r($_POST);
}

if you see any values then the problem is in your model...


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]HSKrustofsky[/eluser]
Okay, don't know what happened, but it kind of started working. I would update, but it would add content in the title section and would add a 0 in the content section.


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]xeroblast[/eluser]
what do you mean that it started working? can you show us the results?


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]HSKrustofsky[/eluser]
How would I show results? Kind of embarrassing, but I missed a semi-colon on one of the lines. Added it, and it started updating.(sort of)


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]xeroblast[/eluser]
copy & paste what is displayed in the browser...


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]HSKrustofsky[/eluser]
Nothing displayed. That was supposed to go at the end of the function of the controller, right?


Help with Update in CRUD. - El Forum - 03-05-2010

[eluser]xeroblast[/eluser]
what do you mean that nothing is displayed??? you use var_dump() or print_r() right?