I need to compare two string case insensitive here is my code
if(strcasecmp($genderseek,\"both\")==0) { $gender2=\"$Ugender==\'MALE\'||$Ugender==\'FEMALE\'\";
You would need to use PHP strtolower() function to compare everything at lower case. This way, case sensitivity will be eliminated.