Help for this page

Select Code to Download


  1. or download this
    my $sql = "SELECT * FROM tbl_admin WHERE day = '$d' ....";
    my $sth = $dbh->prepare($sql);
    $dbh->exec();
    
  2. or download this
    my $sql = "SELECT * FROM tbl_admin WHERE day = ? ....";
    # note the ? (question mark) placeholder
    my $sth = $dbh->prepare($sql);
    $dbh->exec($d);