How to insert corporate details into database |
(11-20-2020, 04:31 PM)InsiteFX Wrote: Insert creates a new database record, update will update an existing record. OK, I understand that. I dont think replace is appropriate. The only one I need to use is "update" but I cant get it to work. I want to get the contents of $product placed into the temp_1 field of an existing record. I dont want the other fields of that record interfered with. If there is existing content within temp_1 then I want it to be overwritten. Currently, because Im dealing with a new field temp_1 is empty. And currently, Im entering into tbl_members, and later when Ive learnt how, I will do the same in tbl_corporate that Ive recently created. I have this in the Controller; PHP Code: $lcuser = $this->session->userdata('user_name'); And this in the Model; PHP Code: public function update_product($product) Everything else works except the entry into temp_1. |
Welcome Guest, Not a member yet? Register Sign In |