title: Incorrect integer value: '' for column error
body: <p>I am getting 'Incorrect integer value: '' for column country_id'. Sometimes my dropdown is hidden in the form. So I am not sure how to handle this situtation. Here is my code. Thanks for any help.</p>
  
  <pre><code>$countryId = isset($_POST['country']) ? $_POST['country'] : 0;
  
  $inserSQL = "INSERT INTO Table1(country_id) VALUES('" .$countryId. "')";
  
  $Result1 = mysql_query($inserSQL ) or die(mysql_error());
  </code></pre>