Jump to content
Larry Ullman's Book Forums

newbie_kerry

Members
  • Posts

    4
  • Joined

  • Last visited

newbie_kerry's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. $q = "SELECT discount_amount FROM discount_codes WHERE vouchercode = '$vouchercode'";
  2. It is a fairly basic table as per the other tables in your book. It is containing: discount_id: int(11) discount_code: varchar(25) discount_amount I just selected select all from table so I was not missing something. I am unsure how to script the voucher discount to read the discount entered by the customer in the form.
  3. I am wanting to have a code "discount10" to give 10% off all purchases I have created the tables, but unsure what code to do next. Here is my basket, where I want the code to be:
×
×
  • Create New...