my $useragent = "SELECT engine_id,useragent,ip,date FROM visit WHERE engine_id='Junk'"; $sth = $dbh->prepare($useragent); $sth->execute(); #__THIS__ $sth->bind_columns(\my($engine_id,$useragent,$ip,$date)); while ($sth->fetch()) {; print "