|< 1 2 >| | 16 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
my $x = $main->{settings}{x};
my $sql;
if($x == 1)
{
$sql = qq{select * from $main->{settings}{wbbnr}_sessions where hash = '$sid'};
}
if($x == 2)
{
$sql = qq{select * from $main->{settings}{wbbnr}_sessions where sessionhash = '$sid'};
}
my $sth = $dbh->prepare($sql);
1
2
3
4
5
6
7
8
9
10
11
12
my $x = $main->{settings}{x};
if($x == 1)
{
my $sql = qq{select * from $main->{settings}{wbbnr}_sessions where hash = '$sid'};
}
if($x == 2)
{
my $sql = qq{select * from $main->{settings}{wbbnr}_sessions where sessionhash = '$sid'};
}
my $sth = $dbh->prepare($sql);
QuotePerl error message:
Global symbol "$sql" requires explicit package name at ./Plugins/ExternalLink.pm line 140.
QuoteEin Fehler ist aufgetreten. Es konnten nicht alle Daten gesendet werden. Bitte versuch es erneut.
Du bist nicht eingeloggt
my $db_pass = "$main->{settings}{sqlpass}";
QuoteFatal error occured: Verbindung kann nicht hergestellt werden: Access denied for user: 'web1@localhost' (Using password: NO) at ./Plugins/ExternalLink.pm
my $db_pass = "12345";
1
2
3
4
5
6
7
8
9
10
my $db_name = "$main->{settings}{sqldb}";
my $db_user = "$main->{settings}{sqluser}";
my $db_pass = "$main->{settings}{sqlpass}";
my $db_host = "$main->{settings}{sqlhost}";
my $db_port = "$main->{settings}{sqlport}";
my $db_connect = "DBI:mysql:$db_name:$db_host:$db_port";
my @ergebnis;
my $id;
my $dbh = DBI->connect($db_connect, $db_user, $db_pass) || die "Verbindung kann nicht hergestellt werden: $DBI::errstr";
1
2
3
4
5
6
7
8
9
10
my $db_name = "$main->{settings}{sqldb}";
my $db_user = "$main->{settings}{sqluser}";
my $db_pass = "12345";
my $db_host = "$main->{settings}{sqlhost}";
my $db_port = "$main->{settings}{sqlport}";
my $db_connect = "DBI:mysql:$db_name:$db_host:$db_port";
my @ergebnis;
my $id;
my $dbh = DBI->connect($db_connect, $db_user, $db_pass) || die "Verbindung kann nicht hergestellt werden: $DBI::errstr";
|< 1 2 >| | 16 Einträge, 2 Seiten |