L
Laurey
ok.. subject may not have been clear. I have an array that is being
split - each line into 2 areas. Those 2 areas of each line will take
up one table cell, i.e.:
<TD>$item1 $item2</TD>
So far, so good. Now, when pulling from my db.. I have many lines (100
so far.. soon to be more), I want to have 2 cells so the page fills a
bit more.. how do I set it to put line 1 info in cell 1, line 2 info
in cell 2, and go back & forth between through the db?
foreach $i (@indata)
{chomp($i);
($sponsor,$other) = split(/\|/,$i);
if ($other eq "")
{$add = "";
$add2="";}
else
{$add = "<SPAN CLASS=\"ltblue2\">";
$add2 = "</SPAN>";}
print "<TR>\n";
print "<TD CLASS=\"ltblue\">$sponsor $add$other$add2</TD><TD
CLASS=\"ltblue\">$sponsor$add$other$add2</TD>\n";
print "</TR>\n";}
what should change to make cell 2 have the info that currently goes
to row 2 (as it is.. it just repeats the same db line of info in both
cells.. obviously <G> )
tia,
-L
split - each line into 2 areas. Those 2 areas of each line will take
up one table cell, i.e.:
<TD>$item1 $item2</TD>
So far, so good. Now, when pulling from my db.. I have many lines (100
so far.. soon to be more), I want to have 2 cells so the page fills a
bit more.. how do I set it to put line 1 info in cell 1, line 2 info
in cell 2, and go back & forth between through the db?
foreach $i (@indata)
{chomp($i);
($sponsor,$other) = split(/\|/,$i);
if ($other eq "")
{$add = "";
$add2="";}
else
{$add = "<SPAN CLASS=\"ltblue2\">";
$add2 = "</SPAN>";}
print "<TR>\n";
print "<TD CLASS=\"ltblue\">$sponsor $add$other$add2</TD><TD
CLASS=\"ltblue\">$sponsor$add$other$add2</TD>\n";
print "</TR>\n";}
what should change to make cell 2 have the info that currently goes
to row 2 (as it is.. it just repeats the same db line of info in both
cells.. obviously <G> )
tia,
-L