Help for this page

Select Code to Download


  1. or download this
    my $sql = 'select 1 from users where empid=? and dept=?';
    if ($dbh->selectrow_array($sql, undef, $empid, $dept)) {
    ...
    } else {
      # not valid
    }