- or download this
my $info = "insert into table1 values('$user','$filename','$filesize',
+'$time','$direction')";
my $sth = $dbh->prepare($info);
$sth->execute();
- or download this
my $info = "insert into table1 values (?, ?, ?, ?, ?)";
my $sth = $dbh->prepare($info);
$sth->execute($user, $filename, $filesize, $time, $direction);
- or download this
my $info = "insert into table1 values(:user,:filename,:filesize,:time,
+:direction)";
my $sth = $dbh->prepare($info);
...
$sth->bind_param(time => $time);
$sth->bind_param(direction => $direction);
$sth->execute();