jeff5656 Posted October 21, 2008 Share Posted October 21, 2008 I want to exclude any $DB_TBLName3.id that equals 82. How do I modify the following to exclude those cases (I only want 12 but don't want records with 82): $sql = "Select * from $DB_TBLName, $DB_TBLName2, $DB_TBLName3 WHERE $DB_TBLName.id = $DB_TBLName2.case_id and $DB_TBLName3.id = '12' and $DB_TBLName.status = 'Closed' and $DB_TBLName.procedure_date BETWEEN '2008-06-17' AND '2008-10-21'"; Link to comment https://forums.phpfreaks.com/topic/129467-is-there-a-not-command-for-this-or-how-do-i-do-this/ Share on other sites More sharing options...
prexep Posted October 21, 2008 Share Posted October 21, 2008 AND `$DB_TBLName3.id` != '82' or <> Link to comment https://forums.phpfreaks.com/topic/129467-is-there-a-not-command-for-this-or-how-do-i-do-this/#findComment-671205 Share on other sites More sharing options...
discomatt Posted October 21, 2008 Share Posted October 21, 2008 AND `$DB_TBLName3.id` != '82' or <> You may want AND `$DB_TBLName3`.`id` != '82' Link to comment https://forums.phpfreaks.com/topic/129467-is-there-a-not-command-for-this-or-how-do-i-do-this/#findComment-671233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.