Alright, I have never asked a question here before, but here goes.
In my PHP script I currently have a query that retrieves all threads matching user ID in the threads_read table (records all read thread ids, Unix timestamp, and user ID). Then, I use another query to retrieve all the matching rows in an important_threads table that contains thread id.
This may be a very simple question to answer but I’m not too familiar with MySQL(i), but how would I make a query that retrieves all NON matching rows in an important_threads table?
You could do something like:
That is a little resource heavy, but it does the job.
I would really recommend against that type of a database structure, though. Simply marking a table called ‘threads’ that would have a column to see if it was read or important would be a much more fluent design.
Best of luck!