in reply to username and password verification from a table in Postgres

Why not just do this?
$query = qq(SELECT * FROM users WHERE userid = \'$username\'); $sth = $dbh->prepare($query); $sth->execute; if(($sth->fetchrow)[0]){ print "$userName is a valid user \n"; exit; } print "$userName is an invalid user \n";


Tradez
"Never underestimate the predicability of stupidity"
- Bullet Tooth Tony, Snatch (2001)

Replies are listed 'Best First'.
Re: Re: username and password verification from a table in Postgres
by Anonymous Monk on May 22, 2002 at 17:18 UTC
    cause i am kinda a newbie and not sure of all the different ways to write perl. thanks!
      Didn't mean to offend, just throwing out an option. Good luck with this, and all your future perl endevours.

      Tradez
      "Never underestimate the predicability of stupidity"
      - Bullet Tooth Tony, Snatch (2001)