jwlarson3rd has asked for the wisdom of the Perl Monks concerning the following question:
this insert happens on a image file upload. if the image already exists this is the error that I recieve in the browser windowmy $sth=$dbh->prepare("INSERT INTO images(username,filename) VALUES('$name','$1.jpeg')") ; $sth->execute();
I don't mind the duplicate entries but I would like to display a different message like "Duplicate entries will be overwritten" Thanks John LarsonDBD::mysql::st execute failed: Duplicate entry 'HF53120.jpeg' for key +1 at /home/bthcraft/cgi-bin/upload.cgi line 66, line 306
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: duplicate entry error
by Roger (Parson) on Dec 04, 2003 at 04:36 UTC | |
|
Re: duplicate entry error
by pg (Canon) on Dec 04, 2003 at 04:46 UTC |