Help for this page

Select Code to Download


  1. or download this
    my $sql = "INSERT INTO TableName(Date,FileName) VALUES('$Date',$file)"
    +;
    
  2. or download this
    my $sql = 'INSERT INTO TableName(Date,FileName) VALUES(?,?)';
    
    my $stmt = $settle_dbh->prepare($sql);
    
    $stmt->execute($Date, $file); # no quoting needed