I have such error if iI have system shutdown or network problem. You really don't avhave a duplicate in your db. DATThat is mysql db error...all you need to do is datthat, if uyou do uryour insertion and it is not true, jesjust alter one of d columnthe columns of uryour table you want to insert into either from varchar to text or bigint and den redo the insertion. Dat solve d problem.
If(!$insert){
$alter=Mysql_query("alter table table_namevarchar
changeto table_nametext
or table_namebigint
bigint(255) not null");
If($alter){
//youand then redo yourthe insertion.
}
} That will solve the problem.
If(!$insert){
$alter=Mysql_query("alter table `table_name`
change `table_name` `table_name` bigint(255) not null");
If($alter){
//you then redo your insertion.
}
}