Null from controller to model |
hi , sorry for english , how can i insert null in db passing the value from controller to model ?
Controller (ajax) : Code: function change_step() Model : Code: public function cambia_step( But if i set NULL on ajax post the field in db don't change ...
@pippuccio76,
Are you sure that your database field accepts NULL values? Are you seeing any errors? If so, what are they? Why don't you kick out the generated query to see what it looks like when a NULL value is given.
(01-10-2020, 11:24 AM)php_rocs Wrote: @pippuccio76, My db accept null values , i don't see any error and cannot generate the last query because i call it with ajax ...
You can, but you will need to open up the "Network" tab, look for "XHR". And then you can see the response.
You will need to add the code for last query and exit; or die; so you can see that query in that window. If you wanted to check that.
|
Welcome Guest, Not a member yet? Register Sign In |