in reply to Problem with insert using DBI
General suggestions for debugging DB code: print your SQL statement so you can visually verify it; include $DBI::errstr in your "or die"; tweak your SQL statements at the DB console until they behave the way you suggest.
Good luck.
Update: As VSarkiss points out below, listing the column names explicitly is always a good idea. Using SET in INSERT may be behavior that's specific to MySQL, so the general-purpose format that rdfield spells out is probably a better choice.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: It won't insert
by rdfield (Priest) on Mar 20, 2002 at 10:25 UTC | |
|
Re: Re: It won't insert
by VSarkiss (Monsignor) on Mar 20, 2002 at 17:04 UTC |