in reply to Re: cookies
in thread Trouble with cookies being used for validation (was: cookies)
with the following:my $SQL = "SELECT username, password FROM user WHERE username = + '$username'"; my @row; @row = $dbh->selectrow_array($SQL);
Hope that helps.my $sth = $dbh->prepare("SELECT username, password FROM user WHERE + username = ?"); $sth->execute($username); # execute substitutes $username in place of the question # mark above, correctly formatted, with all bad news # characters removed by the DBI my @row = $sth->fetchrow;
|
---|