Help for this page

Select Code to Download


  1. or download this
      CREATE TABLE mytable
      (
          person VARCHAR(20),
          lasttime INTEGER
      );
    
  2. or download this
      my $sql = "INSERT INTO mytable (person,lasttime) VALUES ?, ?";
      my $sth = $dbh->prepare( $sql );
    ...
      {
          die( "DB Error " . $dbh->errstr . "\n" );
      }
    
  3. or download this
      my $timenow = time();
      my $fiveminutes = 5 * 60; # 60 seconds times five
    ...
      {
          die( "DB Error " . $dbh->errstr . "\n" );
      }