in reply to Inserting data in Mysql
Don't comment out use strict; use warnings;. See the DBI documentation regarding placeholders. You're not checking your inserts work:
my $rows = $dbh->do($statement) or die $dbh->errstr;
Which is also covered in the documentation. For debugging check that you have a value for each of the fields, for example:
Warn "value1: $value1, value2: $value2...";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inserting data in Mysql
by moritz (Cardinal) on Dec 03, 2010 at 10:58 UTC |