title: How to insert Integer value in DB - PHP
body: <p>I have using PHP for inserting integer value in Database.</p>
  
  <p>Iam using like this</p>
  
  <pre><code>$postcode = $_POST['postcode'];
  $mysql_user_resultset = mysqli_query($con, "INSERT into user (postcode) VALUES ($postcode)");
  </code></pre>
  
  <p>I have several field in DB. like name, username, etc. all are defined as varchar, but postcode only defined as int. If not enter the value for postcode, it doesn't insert into database</p>