11-23-2020, 01:10 PM
(11-21-2020, 02:38 PM)InsiteFX Wrote: Show me you table structure with all column names etc.;
Also check to make sure you are getting the users name.
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?