Duplicate entry '1' for key 1


If this

Duplicate entry ‘1’ for key 1

shown to me , what will be the problem and what i have to do ?

It means that there is a row in table, which has “1” value in first key column.
You should first check what is this key column name - just do ‘show create table’, and see line like ‘PRIMARY KEY …’.
And then you can review your query, and check, why you are inserting data with duplicate key.