in reply to simple MySQL prob
If you wanted to replace an existing record, look up the syntax for REPLACE where you can do something like:$dbh->do('insert into foo values (x,y,z)'); if ($dbh->err && $dbh->err == 1062) { # we've got a duplicate }
Hope this helps...$dbh->do('replace foo values (x,y,z)');
gav^
|
|---|