You are currently viewing the BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Just to note I have tried the shopping cart example from chapter 08 and the cart.php code is incomplete and does not work. The <form> is not closed with a </form> and the select is also not closed with </select>.
But the main thing is that even after I fixed the code the 'update' cart does not post at all.
Wondering if you could provide any suggestions.
The Following User Says Thank You to dipeshedesign For This Useful Post:
It looks like the sprintf() that creates the necessary query is missing a formatting specifier. Using the inventory_process.php script from the downloadable source files as a reference, the statement that starts on line 133 should read:
Firstly. apologice for my poor English, I'm from Spain.
I wonder If anyone of us has found any error in chapter 8, because I'm trying
but I' cant make it work.
I have fixed de </form>, the </select> and the query above. But I think there is something wrong in the matrix "qty", because: "foreach" loop don't make anything.
Anybody found any extra error?
Thanks a lot, and sorry for my English.
Last edited by michelmarquetaj; September 23rd, 2009 at 12:09 PM.