Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple yet not working?

Status
Not open for further replies.

JamesGMills

Programmer
Aug 15, 2005
157
GB
Hi...

I am trying to run this:

SELECT * from phpbb_users WHERE user_id <> '-1' AND user_active = '0' OR user_posts = '0'

Sure you can see what i am trying to do with phpbb forum users table but in the results it always picks up the user with id -1

Is my SQL wrong?

------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top