ELRas Posted August 12, 2014 Share Posted August 12, 2014 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? Link to comment Share on other sites More sharing options...
ELRas Posted August 12, 2014 Author Share Posted August 12, 2014 Ok, now I see that browsing coffees uses list_coffees2.html not list_products3.html Link to comment Share on other sites More sharing options...
ELRas Posted August 13, 2014 Author Share Posted August 13, 2014 Sorry, found my answer in the book Link to comment Share on other sites More sharing options...
Larry Posted August 14, 2014 Share Posted August 14, 2014 Kudos for figuring it out and thanks for letting us know. Link to comment Share on other sites More sharing options...
Recommended Posts