I have preset "my $backcol = #262525; and my $colindex = 1;"
There is something wrong with my syntax but i cant work it out
MADAXE
There is something wrong with my syntax but i cant work it out
MADAXE
Code:
foreach my $i (@data) {
chomp($i);
my ($TTITLE2,$NAME,$DATE,$POST) = split(/\|/,$i);
$backcol == #262525 if ($colindex eq 1);
$backcol == #525262 if ($colindex eq 2);
print qq(<tr>
<th width="25%" nowrap="nowrap"><FONT COLOR=#DCD9D9" SIZE="4">$NAME</font></th>
<th width="50%" nowrap="nowrap">-----</th>
<th width="25%" nowrap="nowrap"><FONT COLOR=#DCD9D9" SIZE="4">$DATE</font></th>
</tr>
<tr>
<th bgcolor="$backcol" colspan="100%"><FONT COLOR=#ffffff" SIZE="4">$POST</font></th>
</tr>
\n);
$colindex += 1 if ($colindex eq 1);
$colindex -= 1 if ($colindex eq 2);
}