2 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# db-mysql
my $template = HTML::Template->new(filename => 'test.html');
my $data = $sth->fetchall_arrayref({
id => 1,
art => 1,
ort => 1
}
);
$template->param( ABFRAGE => $data );
print $template->output();
# also wenn im column art "TERMIN" dann
1
2
3
4
5
#snippet
while (my @result = $sth->fetchrow_array) {
if ($result[1] eq "TERMIN") { print qq{ etc..}
}
1
2
3
4
5
6
7
8
if ($checkmail eq 1)
{
$template->param(CLASS => "inputcolor");
}
else
{
$template->param(CLASS => "");
}
2 Einträge, 1 Seite |