I have a table 'people' and a table 'usergroups'
this works fine
$sql=mysql_query("SELECT * FROM people
LEFT JOIN people.P_ID=usergroups.P_ID
");
but if i put
$sql=mysql_query("SELECT * FROM people
LEFT JOIN people.P_ID=usergroups.P_ID
WHERE usergroups.Group_ID LIKE '%'
");
where the % has come from a form.
It doesn't show all results because not every person has an entry in usergroups, even though we are checking for ANY results.
is there a way to do this in the query where it will always list everyone in people, even though they have not got an entry in usergroups.
Make sense??
Nozom