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.; Hey InsiteFX I have another problem. In the view page I have the following which works good. PHP Code: <?php echo $this->session->userdata('user_name'); ?> But if I have the following it wont work even though the field has data. PHP Code: <?php echo $this->session->userdata('temp_1'); ?> If I do the same for last_name it works. PHP Code: <?php echo $this->session->userdata('last_name'); ?> But if I change the column name in the table to last_temp & have the following it wont work. If I change both back to last_name it works. PHP Code: <?php echo $this->session->userdata('last_temp'); ?> Ive tried the following but makes no difference. PHP Code: <?php echo $this->session->set_userdata('temp_1'); ?> It appears that anything new wont work, whereas all existing data does work. Ive added temp_1 to the Login Controller & done a fresh Login. And Ive tried different names & tried deleting & reinserting new columns into the table. Have you any suggestions? |
Welcome Guest, Not a member yet? Register Sign In |