Thread tmpl_loop switch (10 answers)
Opened by nurri at 2005-06-06 17:17

nurri
 2005-06-07 13:42
#5054 #5054
User since
2005-06-06
18 Artikel
BenutzerIn
[default_avatar]
hallo renee,

dein vorschlag funktioniert nicht ...

früher hatte ich html quelltext im cgi-script

im prinzip habe ich da obige html::template problem früher so gelöst:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
while (my @result = $sth->fetchrow_array) {

if ($result[2] eq "4") {

print qq {
<td>$result[0]</td>
<td>$result[1]</td>
<td><a href="link.pl">$result[2]</a></td> # es geht mir um diesen link bei der ausgabe der datensätze wenn spalte CAT eine zahl 4 beinhaltet, andernfalls

};
}
else {

print qq {
<td>$result[0]</td>
<td>$result[1]</td>
<td>$result[2]</td>

};


}
}


aber dies müsste man doch mit html::template auch hinbekommen

View full thread tmpl_loop switch