Getting Additional Field From Different Table
I saw the following post and I'm trying to use it in a way for my queries
however I'm using two different tables.
I have my logins table which uses the logins_model and I have the users
table.
Inside of the logins table it only includes login information needed to
log the user in.
I currently have the email address as the way for the user to login with
the password field.
In my users table it includes all the personal information about the user.
What I am wanting to do is when the user logs in successfully, they are
sent to the control panel where I query the database for users table for
their personal information to display, however I also need the email
address to display.
I'm trying to figure out how I can gather that email address field when I
do the initial query.
Here is the GitHub repo for MY_Model from Jamie Rumbelow.
No comments:
Post a Comment