title: My database is not saving in table formed in my SQL WAMP server
body: <p>I have created a database in <strong>MySQL WAMP server</strong> and is not saving results. Please tell me what should I do. There is no error while submitting in localhost.</p>
  
  <p>Can't add more details:</p>
  
  <pre><code>&lt;?php
  
  if (isset($_POST['Submit'])) {
      $firstName = $_POST['Name'];
      $fatherName = $_POST['fatherName'];
      $email = $_POST['Email'];
      $NIC = $_POST['NIC'];
  
      $server = '127.0.0.1';
      $vid = 'root';
      $pwd = '';
      $conn = mysqli_connect($server, $vid, $pwd);
      if (!$conn) { 
          echo "server not found";     
      } else { 
          echo"stored successfully";
          @mysql_select_db("database1");
  
          //$firstName= "nazi";
          //$fatherName="Ali";
          //$email= "nazia.se@yahoo.com";
          //$NIC= 67567678;
  
          //$sqlquery="INSERT INTO tab1 (name,fname,email,nic) VALUES ('$firstName',            '$fatherName', '$email', $NIC)";
          $sqlquery = "INSERT INTO form(name,fname,email,nic) VALUES ('$firstName', '$fatherName', '$email', $NIC)";
          //echo $sqlquery;
          mysql_query($sqlquery);
      }
  }
  
  if (isset($_POST['Submit'])) {
      if(empty($firstName)){
          echo nl2br("Please write name.\n");
          return false;
      }       
      if (empty($fatherName)) {
          echo nl2br("Please write email .\n");   
      }
      if (empty($email)) {
          echo nl2br("Please write email .\n");
      }
      if (empty($NIC)) {
          echo nl2br("Please write NIC number .\n");  
      };
  }
  
  ?&gt;
  
  &lt;form id="form1" name="form1" method="post" &gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;p align="center" class="style1"&gt;   REGISTERATION FORM &lt;/p&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;table width="447" border="1"&gt;
          &lt;tr&gt;
           &lt;td width="169"&gt;Name&lt;/td&gt;
              &lt;td width="262"&gt;&lt;label&gt;
            &lt;input name="Name" type="text" /&gt;
          &lt;/label&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;Father Name&lt;/td&gt;
          &lt;td&gt;&lt;label&gt;
            &lt;input type="text" name="fatherName" /&gt;
          &lt;/label&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;email Address&lt;/td&gt;
          &lt;td&gt;&lt;label&gt;
            &lt;input name="Email" type="text" /&gt;
          &lt;/label&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;NIC &lt;/td&gt;
          &lt;td&gt;&lt;label&gt;
            &lt;input name="NIC" type="text" size="15" /&gt;
          &lt;/label&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td colspan="2"&gt;&lt;input type="submit" name="Submit" value="Submit" /&gt;                &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/form&gt;
  </code></pre>