Help for this page

Select Code to Download


  1. or download this
      $sql = "SELECT NOW()";
      $sth = $dbh->prepare($sql) or die "Error:" . $dbh->errstr . "\n";
      $sth->execute() or die "Error:" . $sth->errstr . "\n";
      while(my $row = $sth->fetchrow_hashref) { print Dumper($row); }
    
  2. or download this
    Error:no such function: NOW(1) at dbdimp.c line 263
    
  3. or download this
    $dbh->func( 'now', 0, sub { return time }, 'create_function' );