Hi all,
I execute this while loop, and it never stops.
$rownumber is definitely 3.
I execute this while loop, and it never stops.
$rownumber is definitely 3.
Code:
my ($rownumber) = $execute->numrows();
# FETCHROW ARRAY
my ($i)=0;
while (my (@results) = $execute->fetchrow() && $i<=$rownumber)
{
$sheet1->write(0, $i, $results[0], $format);
$sheet1->write(1, $i, $results[1]);
print $i;
$i++;
}