I have the code below.I know that the query has 1 column as result but the code return false for the row.
What is wrong?
$query = "select ac_min_price,ac_final_date from auction_products
where ac_id=:bproduct";
$idresults = $dbh->prepare(query);
$idresults->bindParam(':bproduct', $binds);
$binds =$_POST['cid'];
$idresults->execute();
$row = $idresults->fetch(PDO::FETCH_ASSOC);
print_r( $row);