PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
First, you should use $_POST['id'] rather than $_REQUEST['id'].
Second you are comparing the user input to the result set returned by the query ($take) instead of the array returned by the fetch ($take2).
Third, you are telling it to print "Conflicted ID" if there is a match, and "registered" if there is no match, so it is doing precisely what you programmed it to do. (Although there will never be a match because you are not comparing the input to the fetched array.)
You are also looking at a single result, so if there is more than one patient, only the first one will be examined for a match.
"A computer always does what you tell it to do, not what you want it to do."