SHARE
TWEET

Untitled

a guest Jun 19th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $result = mysql_query("SELECT * FROM coupon WHERE Email_Address='$address'");
  2.  
  3.     if (mysql_num_rows($result)==0){
  4.         echo "ADDING TO DATABASE: " . $address;
  5.         mysql_query("INSERT INTO Coupon (Date_Issued, Email_Address, Coupon_Code, Coupon_Expiry) VALUES ('".date(Y-m-d)."', '$address', '$couponcode', LAST_DAY('".date(Y-m-d)."');)");
  6.     }
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top