title: why zero not going to database when its type integer?
body: <p>can I know why it is not inserting zero to my database when its type in integer. I have a table called contact and there is a column to keep users' 10 digits length mobile no. This number generally start with 0. Eg. 0713423454, 0234324545 etc.</p>
  
  <p>In my table I have create that column like this..</p>
  
  <pre><code>mobile INT(10) NOT NULL, 
  </code></pre>
  
  <p>In php I validate it something like this...</p>
  
  <pre><code>// Check for a mobile number:
  if ( !empty($_POST['mobile'])) {
      $number = $_POST['mobile'];     
      if (preg_match('/(0[0-9]{9})/', $number)) {
          $mobile = mysqli_real_escape_string ( $dbc, $number);
      } else {
          $reg_errors['mobile'] = 'You are NOT entered valid Mobile number!';
      }
  } else {    
      $reg_errors['mobile'] = 'Mobile number can not be empty!';
  }
  </code></pre>
  
  <p>But when inserting mobile number to database its going without 0 like this 234223434, 435453545 etc. </p>
  
  <p>So I would like to know is there a way to insert my mobile number with 0 to database..</p>
  
  <p>Thank you. </p>