Sparkie has asked for the wisdom of the Perl Monks concerning the following question:
It seems to fail when it reaches ****. The Idea is to finally use a sort of password control to gain access to certain areas of the site. (I know the way that I am doing it is probably not very secure but I am just playing to try and get some ideas on how to use perl and databases) The one thing that I don't understand is why it was working earlier but not now.use DBI(); $dbh = DBI->connect("dbi:ODBC:TLRS",'sa','') or die "$DBI::errstr\n"; ****$sth=$dbh->prepare("SELECT * FROM users where user like'sparkie' a +nd passwd like 'foo' "); $sth->execute(); while($ref = $sth->fetchrow_hashref) { print"$ref->{'user'},$ref->{'passwd'},$ref->{'allow'}\n"; } $sth->finish(); $dbh->disconnect;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Problems connecting to server 2
by c-era (Curate) on Nov 08, 2000 at 21:32 UTC | |
|
Re: Problems connecting to server 2
by PsychoSpunk (Hermit) on Nov 08, 2000 at 21:23 UTC | |
|
Re: Problems connecting to server 2
by Jonathan (Curate) on Nov 08, 2000 at 19:56 UTC | |
|
Re: Problems connecting to server 2
by wardk (Deacon) on Nov 08, 2000 at 20:01 UTC | |
|
Re: Problems connecting to server 2
by Sparkie (Initiate) on Nov 08, 2000 at 20:01 UTC |