Help for this page

Select Code to Download


  1. or download this
    my $cur_time = time2str("%c", time) ;
    $dbh->do("UPDATE Schedules SET Date = ? WHERE ID = ?",
       undef, $cur_time, $id) ;
    
  2. or download this
    my $sth = $dbh->prepare("UPDATE Schedules SET Date = ? WHERE ID = ?");
    my $cur_time = time2str("%c", time) ;
    $sth->execute($cur_time, $id) ;