Skip to content
Advertisement

shopping cart with PHP and connected to the MySQL

Good evening, I am currently working on the implementation of a shopping cart through PHP and MySQL, I am getting the following error at line 172 onwards, I have been looking at the quotes but I cannot find the problem, what could be the solution to this?

I have been changing this cart from a mysqli version of it into pdo and I am having some trouble to make it work, I hope this can be fixed.

Thanks for your help.

Advertisement

Answer

You had some errors in your foreach loop containing $result so try this:

}

You could try using printf to help with readability of the code. http://php.net/printf

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement