mysql_insert_id() returns 0

前端 未结 4 1456
[愿得一人]
[愿得一人] 2020-11-30 10:29

I know there are a lot of topics with the same title. But mostly it\'s the query that\'s been inserted in the wrong place. But I think I placed it right. So the problem is,

4条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 11:12

    It is possible that your INSERT query was not successful - e.g., maybe you were trying to insert duplicate data on a column whose data must be unique?

提交回复
热议问题