This error occurs when you try to insert a duplicate value into a primay key or Unique constrained field.
Check to ensure that the value does not exist in database before inserting.
But i dnt have a primary key or unique key in my table. I have only Foreign Key
My table structure is
+---------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------+------+-----+---------+-------+
| reply_no | int(5) | YES | | NULL | |
| question_no | int(5) | YES | MUL | NULL | |
| reply_content | text | YES | | NULL | |
| emp_name | varchar(40)| YES | | NULL | |
| emp_no | int(6) | YES | | NULL | |
| entry_dat | date | YES | | NULL | |
+---------------+-------------+------+-----+---------+-------+
pls help