Help for this page

Select Code to Download


  1. or download this
    if(length $string>256){
       # remove trailing spaces
    ...
          $string = substr($string,0,256);
       }
    }
    
  2. or download this
       $dbh->do(
             "CREATE TABLE $table ("
    ...
          #$sth->bind_param(2,"$fld2",DBI::SQL_VARCHAR);
          print $fld2; #prints 0002
          $sth->execute($fld1,$fld2,$fld3);
    
  3. or download this
          $sql = "INSERT INTO $table VALUES('$fld1','$fld2','$fld3')";
          #print $sql . "\n";
          $dbh->do($sql);
    
  4. or download this
    #! /usr/lcl/bin/perl
    
    use DBI;
    ...
    sub _forminfo {
       ...
    }