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.
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: