in reply to database selecting then validating
pojmy $sql = 'select count(*) from users where empid=? and dept=?'; my ($count) = $dbh->selectrow_array($sql,undef,$empid,$dept); if ($count == 1){ # valid } else { # not valid }
In Section
Seekers of Perl Wisdom