upsert the 'data' column in mysql |
Need to upsert the 'data' column in mysql where id = 2. But the below code in the model does not work (Codeigniter 4).
$payload = [ 'id' => 2, 'data' => "{node:2}" ]: $this->request->save($payload):
Please Read:
CodeIgniter 4 User Guide - Modeling Data - Using CodeIgniter’s Model - Save What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |