Author Topic: Why does my Query doesn't work?  (Read 2635 times)

rhyancute

  • Regular Member
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
    • Read PHP tutorial
Why does my Query doesn't work?
« on: August 06, 2008, 02:30:45 AM »
hello good day to all..

i have problem here and i know any one here can solve this:

Code: [Select]
$query=mysql_query("SELECT * FROM tbl1 WHERE id NOT IN (SELECT id FROM tbl2) && fld1!='resign' || fld1!='awol' ORDER BY $id",$conn);
thanks in advance
Holy one unsung, you are the scum of his philosophy
Will you ever learn that it is god who is the enemy?

Zyppora

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1401
  • Karma: +0/-0
    • View Profile
Re: Why does my Query doesn't work?
« Reply #1 on: August 06, 2008, 07:42:23 AM »
Are you getting any errors, or does it have unexpected results (if so, what were you expecting, and what it is returning)?
HAVE YOU TRIED DEBUGGING? Example code in this reply deliberately contains BUGS. PHP forum for beginners.

rhyancute

  • Regular Member
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
    • Read PHP tutorial
Re: Why does my Query doesn't work?
« Reply #2 on: August 13, 2008, 11:15:43 PM »
i got it.. tnx :d
Holy one unsung, you are the scum of his philosophy
Will you ever learn that it is god who is the enemy?