That error is beginning to get on my nerves. I just can't figure out what I messed up. Hoping you folks will be able to tell me.
statement:
$table = 'tourney';
my $sth = $dbh->prepare("INSERT INTO $table VALUES (?,?,?,?,?,?)" or die "Couldn't prepare statement: " . $dbh->errstr;
execute:
$sth->execute($rank, $name, $land, $nw, $game, $set) or die "Couldn't execute statement: " . $sth->errstr;
Niether one dies with errors but when it tries to execute the statement the program stops execution and I see "Can't call method "execute" on an undefined value at..." in my error log.
Any ideas?
Thanks,
Celia
statement:
$table = 'tourney';
my $sth = $dbh->prepare("INSERT INTO $table VALUES (?,?,?,?,?,?)" or die "Couldn't prepare statement: " . $dbh->errstr;
execute:
$sth->execute($rank, $name, $land, $nw, $game, $set) or die "Couldn't execute statement: " . $sth->errstr;
Niether one dies with errors but when it tries to execute the statement the program stops execution and I see "Can't call method "execute" on an undefined value at..." in my error log.
Any ideas?
Thanks,
Celia