CodeIgniter Forums
Update Via Model CodeIgniter ( No Dat a To Update ) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: Update Via Model CodeIgniter ( No Dat a To Update ) (/showthread.php?tid=80369)



Update Via Model CodeIgniter ( No Dat a To Update ) - ggilrandy - 10-24-2021

Hello, im trying to update data but it seems i got error
there is no data to update
i try to search on the internet, that the same data causing this, but i had different data
i check my value and its different from the saved data(data that already in the db)
i wanted to change one of the column value, it has different value from the saved data and the upcoming data
the saved data is 
IC/TP/000001
and the posted data is 
IC/TP/000002

this is my code 
[Image: Yv2TZGDn]
https://postimg.cc/Yv2TZGDn
it throws that error, can someone explain ?


RE: Update Via Model CodeIgniter ( No Dat a To Update ) - sprhld - 10-26-2021

I think its better to post all your stuff instead to send an image...


RE: Update Via Model CodeIgniter ( No Dat a To Update ) - includebeer - 10-26-2021

Yes please. Post your code instead of this horrible site with 2000 stupid ads. Post your model and controller and what version of CodeIgniter.