title: how to update wp_usermeta table for a specific id
body: <p>I want to update some meta key from wp_usermeta table in wordpress.I have used this code but could not find my solution.Ihave tried this code.Any help will be highly appreciated</p>
  
  <pre><code>$newname=$_POST['name'];
      $parts = explode(" ", $newname);
  
      $newlname = array_pop($parts);
      $newfname = implode(" ", $parts);
  
      echo "Firstname: $newfname\n";
      echo "Lastname: $newlname\n";
      echo $id= $_POST['newid'];
  echo $newaddress= $_POST['address'];
  echo $newcity=$_POST['city'];
  echo $newareacode=$_POST['acode'];
  
  
  /* Start database connection */
         $dbhost = 'localhost';
         $dbuser = 'user';
         $dbpass = '';
         $conn = mysql_connect($dbhost, $dbuser, $dbpass);
         mysql_select_db('etplpm_network');
  /* End  database connection */
   $sql="UPDATE wp_usermeta set 'first_name'=$newfname, 'last_name'=$newlname, 'billing_address_1'=$newaddress, 'billing_city'=$newcity, 'billing_postcode'=$newareacode WHERE 'ID'=$id"; 
       $result = mysql_query( $sql, $conn );
  
  if($result)
  {
      echo "Successfully Updated";
  
  }
  else
  {
      echo "Successfully Not Updated";
  }
  </code></pre>
  
  <p>}</p>