title: Update on a mysql row not working
body: <p>I'm trying to update a column value in a mysql table, but nothing is happening at all. </p>
  
  <p>It's neither showing the update message nor the error message. </p>
  
  <p>html form:</p>
  
  <pre><code>&lt;html&gt;
      &lt;form action='xyz.php' method='post'&gt;
          &lt;input type='text' size='25' id='country' name='country'&gt;
          &lt;input type='submit' id='submit' value='update'&gt;
      &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>php code:</p>
  
  <pre><code>&lt;?php
  
  session_start();
  
  $con=mysqli_connect("localhost","root","","server2go");
  
  if(mysqli_connect_errno())
  
  echo "&lt;h2&gt;Failed to connect to MySQL database!".mysqli_connect_errno();
  
  if(isset($_POST['submit'])){
  
  
      $country=$_POST['country'];
  
      $userid=987654326;
  
      $sql2=mysqli_query($con, "UPDATE user_profile set country='$country' WHERE userid='$userid'");
      if(!$sql2){
          die(mysqli_error($con));
          echo "&lt;h6&gt;Failed to update&lt;/h6&gt;";
      }
      else {
          echo "&lt;h5&gt;Successfully updated!&lt;/h5&gt;";
     }
  }
  
  ?&gt;
  </code></pre>
  
  <p>what have i done wrong here?</p>
  
  <p>plz help.</p>