Z
Z
Zhandev2016-10-13 18:36:48
MySQL
Zhandev, 2016-10-13 18:36:48

How to solve a small problem of saving data to a database?

Write the received data to the database.
For each product, write down the fields: product_id, title, description, rating, price (if there is inet_price), image
- If the product does not have a product_id, this will mean that the product id is the same as the previous one, but the product has a different variation

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Zhilyaev, 2016-10-13
@kirill_782

Take and check if the new product has a product_id, if it exists, then write it, if not, then get the last one from the database and write it to the database with this mud

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question