Help for this page

Select Code to Download


  1. or download this
    my $info = "insert into table1 values('$user','$filename','$filesize',
    +'$time','$direction')";
    my $sth = $dbh->prepare($info);
    $sth->execute();
    
  2. or download this
    my $info = "insert into table1 values (?, ?, ?, ?, ?)";
    my $sth = $dbh->prepare($info);
    $sth->execute($user, $filename, $filesize, $time, $direction);
    
  3. 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();