Hello guys. So the next question is of interest. There is a product table. There are standard fields, name, price, description. There is also a partner table where information about who entered information about the product is entered. There are two fields. Partner and product_id.
So, I wrote a web interface for customers, they add a product, the product is added, but it is necessary that information be added to the partner table, or rather the product id. The product table has a standard id field. Initially, this field is unknown, after adding it is known. I use the mysql_insert_id () function and get the last id added and insert the partner into the table. How much do I do right? or at all in the wrong direction digging.