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


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


Read more here:

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: