Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Call and match data on mysql database PHP

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


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Call and match data on mysql database PHP

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×