Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question