I have set up a content recordset and a links recordset. A link name is included in the links recordset. It's easy to write a query that compares the list of possible link names to the content and displays all the names that have been used on the list by doing this:
PHP Code:
SELECT links.linkName
FROM links, content
WHERE links.id = content.linkID
ORDER BY links.linkName ASC
What I want is a list of the names NOT available. Everything I try either results in duplicates of the all names duplicated by the number of unused names or no results. Here's query that gives the list of used names duplicated by the number of unused names:
PHP Code:
SELECT links.linkName
FROM links, content
WHERE links.id <> content.linkID
ORDER BY links.linkName ASC
I have tried all sorts of JOIN's and other logic. I must be missing something simple.