Instead of showing a list to the user of all the available properties that there are, I'm trying to show them all the properties that they have not already saved to their account. I record in a table on the database which properties the user has saved, I record this by the id
of the property and the user's id
.
So i would like to write a query like
$query = "SELECT * FROM propertys WHERE id != 1 or 3";
This would then select the property with an id
of 2, and display it to the user, instead of a list of 1 and 2 and 3 where they have already seen and saved 1 and 3.
The Problem
This query written above does not seem to work. It still displays all the properties, which im not sure as why.
EDIT:
The Actual Problem
Now it wont display the properties that are left over. The query above doesnt display property 1 or 3, which is intented, but now also doesnt display property 2.