This is my query to the server:
$search= CKR;
$query = "SELECT clubid FROM club WHERE clubid= '$search'";
It WILL retrieve all the "clubid's" from "club" that match "CKR." However, it also retrieves the "clubid's" that say "CKRA" or "CKRC".
I only want it to retrieve the data that says CKR exactly, nothing else.
Is there a way to write the query so SQL knows to only retrieve an EXACT match? Thanks!
$search= CKR;
$query = "SELECT clubid FROM club WHERE clubid= '$search'";
It WILL retrieve all the "clubid's" from "club" that match "CKR." However, it also retrieves the "clubid's" that say "CKRA" or "CKRC".
I only want it to retrieve the data that says CKR exactly, nothing else.
Is there a way to write the query so SQL knows to only retrieve an EXACT match? Thanks!