I want to save data in multiple columns in two tables at once.

I have stock and option table.
The stock table contains the price, title, options columns, and:
There are color, size, quantity columns in the options table. I want to enter data into price, title, color, size, and quantity at once when registering the product.
Thank you for helping me.