Wednesday, 29 August 2018
Subscribe to:
Post Comments (Atom)
gift_code which type is varchar(20) and now it's contain GREATDAY string data.string can contain Uppercase or Lowercase characters. I want to search exact match$checkPromo = mysqli_query($conn, "SELECT * FROM gift_card WHERE gift_code = 'GREATDAY' ");
echo $numPromo = mysqli_num_rows($checkPromo);
BINARY keyword but not working :(COLLATE utf8_general_cs is what matters. When the column's collate is set to this, the case-sensitive will work. if your column collate is utf8_general_ci this will ignore the case sensitiveness while querying.
Hello Friends! I am Ramana a part time blogger from Hyderabad.
0 comments:
Post a Comment