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.
Expand|Select|Wrap|Line Numbers
- 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>";
- }