你是想取回刚刚插入自动增加的ID值吗?用这个刚增加好的id再去处理吗?如果是的话:$mysqli->insert_id
http://php.net/manual/en/mysqli.insert-id.php如果不是的就再清楚点