I have AES encrypted data stored in the database using php mysql. Which I entered using AES_ENCRYPT. Problem is that data is coming from iphone and “first name” of member is coming with first letter in UPPER CASE and stored as Upper. For examle ‘Pooja’
I am wondering when I go for searching the following then it does not give me any result.
SELECT *
FROM member
WHERE LOWER(AES_DECRYPT(fname,'xxxxxxxxxxxxxxxxx')) LIKE'%$pooja%'
It gives me ‘Pooja’ when I dont use LOWER.
Can anybody please correct me here ??
Are you sure that you want to have the
%$at the beginning?As others have said,
LOWERshould ignore case, so try this:%matches zero or more arbitrary characters, so this query should match all of the followingbut not