RE: [PHP] How do i retrieve the records that are NOT linked?

From: Date: Sat, 20 Oct 2001 20:38:12 +0000
Subject: RE: [PHP] How do i retrieve the records that are NOT linked?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71702@lists.php.net to get a copy of this message
if i understand you correctly, perhaps this: select * from categories a,category_user_rights b where a.name!=b.username; jack "categories" contains: ID, parent_ID, name "users" contains: username, password, name, etc.... "category_user_rights" contains: username, category_ID How do I pull everything out of "categories" that a given user DOES NOT have rights to? ie. every record from "categories" that does not have a record in "category_user_rights" linking it to a username such as "fred" Any help on this would be greatly appreciated! Thanks! Simon Kimber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#71702) next »