Re: get all except 1

From: Date: Wed, 21 Jul 2004 01:39:17 +0000
Subject: Re: get all except 1
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191253@lists.php.net to get a copy of this message
Dan McCullough wrote:
Anything wrong with SELECT * FROM story WHERE approved = 1 AND newsId != $newsId AND editionId = $eid ORDER BY newsSortOrder ASC
Should be fine if I understand your question correctly. You can use != or <>; same result. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#191253) next »