Welcome Guest, Not a member yet? Register   Sign In
upsert the 'data' column in mysql
#1

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):
Reply
#2

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB