I'm pulling an array of names from mysql and storing them in an array - then I query the same database with a different query and output the names (with info) one by one, testing each time to see if the name being output matches one of the names in the array. In this way, I'm letting people know which names are "mutual" between the two categories.
but when I test the name using in_array(), I'm getting inconsistent results. After looking at the site a bit, I began to notice a number of case inconsistencies. MyNameIsDORK might be changed to mynameisdork. I know in_array() is case sensitive, but the names are coming form the same database and I can't see anything I'm doing that would convert to lowercase. When I get results from mysql, I use stripslashes(). When I enter things into mysql, I use mysql_real_escape.