Hello, there is an array of goods that the user threw in the basket. After clicking the send button, we make an entry in the orders table, of the following type:
'', 'date and time', 'login'.
The first column is id A_I . That is, we received a new order "id" for the user "login". Now paste in orders_goods
'','id_product','price','kolichestvo','nomer_zakaza=id с первой таблицы'. I cannot understand how to associate the id from the first table with nomer_zakaza from the second, because they are inserted at the same time and it is A_I ? thanks for the help