Buenas gracias por responder el caso es que quiero hacer es insertar unos datos en una tabla y me devuelva el Id y a su vez se ese id se inserte en otra tabla, algo como esto
Código PHP:
INSERT INTO product_attribute_combination ( id_attribute, id_product_attribute ) VALUES
("1", FUNCION PARA QUE INSERTE UN VALOR Y DEVUELVA UN ID => INSERT INTO product_attribute (id_product) VALUES ("10000") ),
("2", FUNCION PARA QUE INSERTE UN VALOR Y DEVUELVA UN ID => INSERT INTO product_attribute (id_product) VALUES ("10000") ),
("3", FUNCION PARA QUE INSERTE UN VALOR Y DEVUELVA UN ID => INSERT INTO product_attribute (id_product) VALUES ("10000") )
gracias