Jump to content

Exclude from MySQL SELECT


051119

Recommended Posts

Hi, I have the following query

select vb_user.username as "Username", vb_userfield.field14 as "Mileage" from vb_userfield 
join vb_user on vb_user.userid = vb_userfield.userid
order by vb_userfield.field14 desc[/Code]

and I want to ignore any results from the username [i]Paul[/i] / userid [i]1432[/i] (they are the same thing). Can anyone advise how to do this, I've tried adding [i]where !=[/i] but this doesn't seem to work?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/187876-exclude-from-mysql-select/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.