- or download this
my %TABLES = ( # Hash identifying one database
'users' => [ # Hash keys are the database's tables
...
'rating'
]
);
- or download this
$handle->insert (
-table => "users",
...
rating => 10
}
);
- or download this
sub insert {
my ($self, %q) = @_;
...
# This is the line that causes problems. Read below for more.
$sth->execute(values %{$q{'-values'}});