I'm having the following problem:
browse.php makes a call to stored procedure select_products('$sp_type', $sp_cat)
and then includes list_products3.html, the following error occurs when browsing goodies, but not when browsing coffees:
"An error occurred in script 'C:\xampp\htdocs\ex2\html\views\list_products3.html' on line 62:
Undefined index: sale_price"
list_products3.html calls the function get_price($type, $row['price'], $row['sale_price'])
but of course $row['sale_price'] does not exist.
Has anyone else run into this?
Why is it an issue with goodies and not coffees?
Suggestions on a fix?