Welcome Guest, Not a member yet? Register   Sign In
Help with Update in CRUD.
#11

[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.
#12

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

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

[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...
#15

[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.
#16

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

[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)
#18

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB