hi all
i am trying to retrive the data from the database by using the following code and printing.But it is reteriving one entry less from the database.could some throw light on this.
Thnaking you in advance
i am trying to retrive the data from the database by using the following code and printing.But it is reteriving one entry less from the database.could some throw light on this.
Code:
my $sth = $dbh->prepare($query);
$sth->execute;
while(my $ref = $sth->fetchrow_hashref())
{
print "Found a row: name = $ref->{'employee'}, Model = $ref->{'model'},Mac = $ref->{'mac'}<br>";
}
Comment