How to retrieve data from a table using session id in codeigniter

Can you help me with the codeignor?

$admin_id = $this->session->userdata('admin_id');

Use this admin_id to get the roll_id from the user_table

user_table

Can you tell me the query to take the roll_name in the roll_details table using this roll_id?

role_details



Read more here: https://stackoverflow.com/questions/68486071/how-to-retrieve-data-from-a-table-using-session-id-in-codeigniter

Content Attribution

This content was originally published by Dileep at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: