prepare($sql); $stmt->bindParam(':username', $username, PDO::PARAM_STR); $stmt->bindParam(':password', $password, PDO::PARAM_STR); $stmt->execute(); if($stmt->rowCount()) { $result="true"; } elseif(!$stmt->rowCount()) { $result="false"; } // send result back to android echo $result; } ?>