$sql = "SELECT * FROM listings WHERE status<>'sold' AND type <>('dev, hl')";
help with the above please.
cheers aron.
I think you want this?
$sql = "SELECT * FROM listings WHERE status<>'sold' AND type NOT IN ('dev, hl')";
You should use the NOT IN operator instead of the <>, ie :
hmm dosent work.
a classic case of compounded errors caused by copy and paste lol
shouldbe
$sql = "SELECT * FROM listings WHERE status<>'sold' AND type NOT IN ('dev', 'hl')";
Sorry ...