Hi Monks
All that I am trying to do here is to only display the values of **$count **, if it has more then 2 items coming from the database otherwise I wanted it to jump out of the while loop and print that one item found. If I do what I have in my code it will not display the first item but it will start from the second I think I know why this is happening but I do not know what is the best way to do it.
Thank you!!!
my $count;
while ($pointer = $sth->fetchrow_hashref)
{
$count++;
$type=$pointer->{'NET'};
$car1 =$pointer->{'CAR1#'};
$line =$pointer->{'LINE#'};
print "<br><b>$count</b><br>";
if($count >= 2)
{
print "<b>**$count **</b>
}
else
{
print "<br><b>^^^^ $count_claims ^^^^</b><br>";
}
}
if($type)
{
print "<META http-equiv=\"REFRESH\" content=\"0; url=go.htm
+\">";
}
else
{
print "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=notfou
+nd.html\"> \n";
exit;
}