JeVic:
I am trying to create a Coupon matching site which is kinda similar to a lotto. The problem I am encountering is how to call the data from a database. I want to freecoupon if match with coupon which is generated using a form field text_value would trigger the function I created
$sql = "SELECT value FROM couponCode";
freecoupon = $conn->query($sql);
coupon = text_value;
if (coupon == freecoupon ) {
percentchance();
}
Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots