How to insert corporate details into database |
(11-21-2020, 02:38 PM)InsiteFX Wrote: Show me you table structure with all column names etc.; Here is the table structure. PHP Code: $data = array('user_id' => $result->user_id, 'date_reg' => $result->date_reg, 'user_name' => $result->user_name, 'pass_word' => $result->pass_word, 'first_name' => $result->first_name, 'last_name' => $result->last_name, 'country_territory' => $result->country_territory, 'temp_1' => $result->temp_1); The users name is derived from; PHP Code: $lcuser = $this->session->userdata('user_name'); And it works coz it appears in the view page that is the photos upload & triggers to send the $product to the database. I want to do the same in the data upload like this; PHP Code: $product = $this->session->userdata('temp_1'); By the way I retrieve the country_territory for the corporate table the same way. PHP Code: $countryterritory = $this->session->userdata('country_territory'); Ive learned how to get all the pages to redirect which is no longer the problem as it was before. |
Welcome Guest, Not a member yet? Register Sign In |