你如果新插入的一段资料,你想获取它的ID,就用 “mysql_insert_id()”; 并且要重新定义一个名称 转载于:https://www.cnblogs.com/pulang/p/3719540.html