如何在php / mysql数据库插入查询期间为一个产品插入多个图像时获取产品ID

问题描述:

我想了解一些代码参考。

I want some idea with some code reference.

如果product_id是一个自动生成的id字段,你可以使用 mysqli_insert_id() [ ^ ]返回上次插入时使用的id。
If the product_id is an auto-generated id field, you can use mysqli_insert_id() [^] to return the id used in the last insert.