in reply to DBI Insert not working

Try adding {RaiseError => 1} to the end of the argument list of DBI->connect.

Replies are listed 'Best First'.
Re^2: DBI Insert not working
by ericlee (Novice) on Jun 09, 2011 at 11:42 UTC
    This made no difference.

      This is really unusal. If an insert fails, and you don't get an error in the presence of RaiseError => 1, it means that either one of the components on your system is seriously busted (your installation of mysql, DBD::mysql, DBI or perl), or that you're not actually running the code you're showing.

      It could be that parts of the code you haven't shown either prevent the insert statement from being executed, or something is catching exceptions or something like that.

      So please provide a short, stand-alone script that exhibts your problem that we can actually run (and enter our own mysql account data, of course).