anything. it seem i did not loop the records very well
any help please. below is the code
#!/xampp/perl/bin
$dbh = "dbi:mysql:testDB:localhost:3306"',"root","root77";
$query = "SELECT price FROM product where television='panasonic'";
$rs = $connect->prepare($query);
$rs->execute();
# BIND TABLE COLUMNS TO VARIABLES
$rs->bind_columns(undef, \$price);
# check if the price is greater than $10,000 AND this where am having prblem
if ($rs[0] > 10000) {
print "price is greater than 10000";
}
elsif($rs[0] = 10000) {
print "correct";
}
else{
print "you get it wrong";
}


Sign In
Create Account


Back to top









