Thread Sonderzeichen (25 answers)
Opened by jan10001 at 2003-08-31 22:05

renee
 2003-08-31 22:22
#82431 #82431
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Zeig mal ein bischen Code...

nomral müsste es so gehen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
my $user = 'test';
my $pass = 'passwd';
my $host = 'localhost';
my $db = 'datenbankname';
my $driver = "dbi:mysql:$db:$host";
my $dbh = DBI->connect($driver,$user,$pass) or die $DBI::errstr;
my $string = 'Thueringen';
$string =~ s/ue/ü/g;
my $string = $dbh->quote($string);
my $test = $dbh->prepare("SELECT * FROM table WHERE zeile=$string;");
....
$dbh->disconnect();
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 Sonderzeichen