Handle error for duplicate entries - PHP MySQL

后端 未结 5 1723
礼貌的吻别
礼貌的吻别 2020-11-28 09:48

I have a PHP form which enters data into my MySQL database. My primary key is one of the user-entered values. When the user enters a value that already exists in the table,

5条回答
  •  情话喂你
    2020-11-28 10:33

    With mysql_error() function http://php.net/manual/en/function.mysql-error.php

提交回复
热议问题