I have 2 tables
login and member
the login table has
ID, username, password, type
the other one holds the information of a user
So like...
ID, firstname, lastname, address, login_id
I want to query so that i can display all the members and their info
My current query is this:
sql Code:
SELECT DISTINCT(lo.ID),lo.username, me.F_name, me.L_name, me.Address, me.Email, me.Phone, me.reg_date, me.payment_date, me.STATUS FROM login lo,member me WHERE lo.type = '1' GROUP BY lo.ID
but it seems like its pulling up the information from only one of the members info, for every ID in the login table
what would be the proper way to join this?