Whats wrong with my PHP code?
In your HTML where you are trying to print the value of $snew in the checkbox, you don’t need the PHP tags because the PHP script is already open. Because you are using single quotes you need to unquote and join the variable using a period. Also where you are trying to output the list of items in the cart, you haven’t accounted for when the the value of num isn’t returned (empty basket) which is why there were error messages at the bottom. Your script should now read: