I have a table defined that has 2 JSON columns and the rest strings. How do I insert key values from an associative array into the JSON columns using query builder?
I ran the code but for the JSON columns 'bookAttr' and 'fields' its showing up as null in my database table.
I know the way the database is setup is weird, but that's what I have to work with. So what's happening is I get user input via post and I save it to the database. In the database table there are two json columns bookAttr and fields which stores key:value pairs of the users input.