Forum Moderators: coopster
is my query and it will return with the results from table mos_users as many times as you have some1 in mos_Mediaman_Acces but i dont want this i want 1 result without the people in the table mos_mediaman_acces.
TY for your help IS it not clear? ask and i will speak :D
Is this what you are looking for?
select mos_mediaman_acces.userid, mos_users.id, mos_users.username from mos_mediaman_acces, mos_users WHERE mos_mediaman_acces.userid==mos_users.id;
Otherwise, a bit longer, but you can:
1/ Do a query to get the id of mos_mediaman_access and create an array.
2/ Do a query of all your user and create an array
3/ Work with array (difference, union, etc...) to get what you want
They are great examples and explanation, and also some tips on how to use GROUP_BY.
Also, post an example on how your tables look like so that I can understand the structure you are having.
Good luck