Do a search in data base

Hi. I want to add a selected product to a data base (name, price and quantity). If the product is selected again I want to find that product and update quantity only. I am trying to do this:

in order to not add a new product. I also need help on how update quantity only.

Thanks in advance.

Provide a link to a copy of your project and I will help you.

Thanks

I created a new page and a new cart table that should do what you are looking for.