Amber Keys
New member
I'm looking for some kind of tutorial that can help me build a simple, lightweight PhP/MySQL driven shopping cart.
My site uses PhP to display products from an SQL database. The products are in a table with the fields: product_id, category, name, price, number_on_hand, and description.
I've built an administrative panel where I can edit or add to these fields via forms using the insert/update/delete SQL commands (sort of my content management system).
I'd like the cart to be able to interact with this table so that items aren't oversold (so it would need to update the "number_on_hand" field in real time).
If anyone can point me in the right direction I'd appreciate it!! I'd prefer to do the hard-coding myself because some of these pre-made carts are so bloated and I want the code to be as simple as possible.
Thanks!
My site uses PhP to display products from an SQL database. The products are in a table with the fields: product_id, category, name, price, number_on_hand, and description.
I've built an administrative panel where I can edit or add to these fields via forms using the insert/update/delete SQL commands (sort of my content management system).
I'd like the cart to be able to interact with this table so that items aren't oversold (so it would need to update the "number_on_hand" field in real time).
If anyone can point me in the right direction I'd appreciate it!! I'd prefer to do the hard-coding myself because some of these pre-made carts are so bloated and I want the code to be as simple as possible.
Thanks!