I have a shopping cart in which I must save the sale of products in my ticket_li table, my table is related to the ticket table where my id_ticket comes from, which I intend to