Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: username and password verification from a table in Postgres

by tradez (Pilgrim)
on May 22, 2002 at 17:05 UTC ( #168519=note: print w/ replies, xml ) Need Help??


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)


Comment on Re: username and password verification from a table in Postgres
Download Code
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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://168519]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (16)
As of 2014-07-24 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (160 votes), past polls