Link to home
Start Free TrialLog in
Avatar of mgtm3
mgtm3Flag for Israel

asked on

i get this error eatch time i try to insert this Duplicate entry 'http://kljvxvs.com/files/kk2' for key 2

why when i try to insert data to mysql i get this error

Duplicate entry 'http://kljvxvs.com/files/kk2' for key 2
if try to insert http://kljvxvfdsfdsfds2 for key 2
why is this?
ASKER CERTIFIED SOLUTION
Avatar of fourice
fourice
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mgtm3

ASKER

what coulmn are you talking about the one that stores http://kljvxvs.com/files/kk2'   or the on the stores the key 2 ???????
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
unless I'm mistaken, I think key 2 means it's the second column of the table, which is probably the one that contains the string "http...."
Avatar of mgtm3

ASKER

yes one of them is uniqe but the thing that i am tring to insert does not exest in the databse
Perhaps showing some code, the table structure and table content could be of help.
Are you also sure there is no other field which is the same? Like a key or something?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial