I have been checking for more than an hour but i cant get the result, my question is, by checking two columns it must display the other columns value as result using PDO.
$sql ="SELECT column3 FROM tablename WHERE column1 = :request AND column2= :recived";
$conn = $conn->prepare($sql);
$fetch = $conn->execute(array(':request'=> $value1,':recived'=>$value2));
$fetch = $fetch->fetchColumn();
please help me with this. Thanks in advance