When I want to find a value from a row using PDO I use the following method:
//Search whether user exists $sqlQueryEmailLogin = $dbh->prepare(\"SELECT ven
That's what I'm using
$sql = "SELECT * FROM articles WHERE id = :id AND status = :status"; $stmt = $conn->prepare($sql); $stmt->execute(array(':id' => $id , ':status' => $status));