Thread select abfrage (11 answers)
Opened by Alter at 2008-07-20 22:05

pq
 2008-07-20 22:31
#112351 #112351
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
benutze lieber platzhalter, wenn in $name oder $password ein ' vorkommt, hast du schon verloren!

Code (perl): (dl )
1
2
my $user_sth = $dbh -> prepare("select name, passwort from user where name = ? and passwort = password(?)");
$user_sth->execute($name, $password);
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread select abfrage