Page 1 of 1

using arrays to exclude items

Posted: Tue Oct 10, 2006 2:20 pm
by jenjenut233
used to be a question here.

Posted: Tue Oct 10, 2006 2:32 pm
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.