you should use intval() instead of making $countryId a string.
http://www.php.net/intval