using arrays to exclude items

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jenjenut233
Forum Newbie
Posts: 7
Joined: Fri Sep 29, 2006 2:23 pm

using arrays to exclude items

Post by jenjenut233 »

used to be a question here.
Last edited by jenjenut233 on Sun Feb 19, 2012 10:46 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

SELECT
  1
FROM
  coupon_codes
WHERE
  coupon_code = '$code'
LIMIT
  1
if mysql_num_rows() returns more than zero, it was in the database.
Post Reply