ext_22837 (
ruudboy.livejournal.com
) wrote
in
devi
2005-01-30 05:28 pm (UTC)
no subject
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";
(
5 comments
)
Post a comment in response:
From:
Anonymous
This account has disabled anonymous posting.
OpenID
Identity URL:
Log in?
Dreamwidth account
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
no subject
$sql = "SELECT * FROM subjectmessages WHERE subject='$_POST[subject]'and display='yes' and (level='a' or level='gen' or level='as') order by id desc";