ext_22837 ([identity profile] ruudboy.livejournal.com) wrote in [personal profile] devi 2005-01-30 05:28 pm (UTC)

You need brackets round the 'or' bit, like:

$sql = "SELECT * FROM subjectmessages WHERE subject='$_POST[subject]'and display='yes' and (level='a' or level='gen' or level='as') order by id desc";

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting