Thread join & dbh->quote() (15 answers)
Opened by pktm at 2004-03-19 09:00

format_c
 2004-03-19 10:16
#31840 #31840
User since
2003-08-04
1706 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
           my $sql = "INSERT INTO db (";
          $sql .= join", ", map {$dbh->quote($_)} keys( %{$ref} );
          $sql .= ") VALUES ('";
          $sql .= join", ", map {$dbh->quote($_)} values( %{$ref} );
          $sql .= "')";


Gruß Alex\n\n

<!--EDIT|format_c|1079685424-->

View full thread join & dbh->quote()