Thread DBI - MySQL DB UPDATE: how 2 update mysql data (3 answers)
Opened by pearl-man at 2005-09-01 17:20

renee
 2005-09-01 17:34
#33485 #33485
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
my $statement = "UPDATE $tabelle SET last_login = ? WHERE user = ? AND admin = 1";
my $sth = $dbh->prepare($statement) or die $dbh->errstr();
$sth->execute($now_login ,$login);


Durch die ? wird automatisch gequotet...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread DBI - MySQL DB UPDATE: how 2 update mysql data