I would like to display a list of the same products only if productPublic = staff or members.
| From: | Philip J. Newman | Date: | Sat, 01 Feb 2003 04:00:51 +0000 |
| Subject: | I would like to display a list of the same products only if productPublic = staff or members. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133846@lists.php.net to get a copy of this message | ||
I would like to list 2 possable items in a mysql queary.
SELECT * FROM products WHERE productType = '$productType AND Where
productPublic = 'staff' OR productPublic = 'members' ORDER BY productId DESC
LIMIT 10
I would like to display a list of the same products only if productPublic =
staff or members.
At the moment what i have just gives me the 1st 10 items.
Any help