Hi

I've got a question on how to exclude a data from a query.  Suppose I
have
the following query that is being used in combination with a PHP web
site:
"SELECT * FROM activities WHERE month='$month' AND year='$year'"

Now suppose the activities table looks like this:
ID     username      month     day    year
1      myuen         Jan       01     2001
2      puffy         May       27     2001
3      jlo           June      5      2001

How do I modify the above query so it SELECTS everything EXCEPT myuen
(that
is, I want my result to be puffy and jlo).

Thanks,

Kelly


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to