If you have multiple domains to check for, it might be easier to use a regexp match:
if(preg_match('/@(?:gmail\.com|hotmail\.com|msn\.com)$/i', $mystring)) {
Otherwise, note that even for your code above, if I entered 'brad@Gmail.com' as my e-mail address, your script would allow it.
Also note that your script is vulnerable to MySQL injection attacks. User-supplied data should never be placed directly into a SQL query string. Instead, you should first sanitize it with a function such as [man]mysql_real_escape_string/man.