my PDO update query is inserting undefined value in only one column , why? : <p>i have four fields of record in my table</p>

<ol>
<li>name</li>
<li>email</li>
<li>phone</li>
<li>address</li>
</ol>

<p>i am using PDO method for updating record in php with ajax, when i call insert query it works fine but when i update my record it updates only three starting fields  , in address field they inserted <em>undefined</em> text value , where i am doing mistake ?</p>

<p>screenshot of my front end
<a href="https://drive.google.com/open?id=0B-PfnAjLGR2xendqM2NsaUVuLW8" rel="nofollow noreferrer">https://drive.google.com/open?id=0B-PfnAjLGR2xendqM2NsaUVuLW8</a></p>

<h2># My html code #</h2>

<p>  </p>

<pre><code>                  &lt;div class="modal-body"&gt;
                  &lt;input type="hidden" id="&lt;?php echo $row['id'];  ?&gt;" value="&lt;?php echo $row['id'];  ?&gt;"&gt;

                     &lt;div class="form-group"&gt;
                        &lt;label for="nm"&gt;Name&lt;/label&gt;
                        &lt;input type="text" class="form-control" id="nm-&lt;?php echo $row['id'];  ?&gt;" value= "&lt;?php echo $row['name'];  ?&gt;"&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group"&gt;
                        &lt;label for="em"&gt;Email&lt;/label&gt;
                        &lt;input type="Email" class="form-control" id="em-&lt;?php echo $row['id'];  ?&gt;" value= "&lt;?php echo $row['email'];  ?&gt;"&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group"&gt;
                        &lt;label for="ph"&gt;Phone&lt;/label&gt;
                        &lt;input type="number" class="form-control" id="ph-&lt;?php echo $row['id'];  ?&gt;" value= "&lt;?php echo $row['phone'];  ?&gt;"&gt;
                        &lt;/div&gt;
                        &lt;div class="form-group"&gt;
                        &lt;label for="ad"&gt;Address&lt;/label&gt;
                        &lt;textarea type="text" class="form-control" id="ph-&lt;?php echo $row['id'];  ?&gt;" &gt; &lt;?php echo $row['address'];?&gt; &lt;/textarea&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;

                  &lt;div class="modal-footer"&gt;
                    &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                    &lt;button type="submit" onclick="updateData(&lt;?php echo $row['id']; ?&gt;)" class="btn btn-primary"&gt;Update&lt;/button&gt;
                  &lt;/div&gt;
                &lt;/form&gt;
</code></pre>

<h2>my ajax script code</h2>

<pre><code>&lt;script type="text/javascript"&gt;
function updateData(str){
           var id = str;
           var name = $('#nm-'+str).val();
           var email = $('#em-'+str).val();
           var phone = $('#ph-'+str).val();
           var address = $('#ad-'+str).val();
           $.ajax({
            type:"POST",
            url: "server.php?p=edit" ,
            data : "nm="+name+"&amp;em="+email+"&amp;ph="+phone+"&amp;ad="+address+"&amp;id="+id,
            success :function(data){
              viewData();
            }
           });
          }
   &lt;/script&gt;
</code></pre>

<h2>PDO file code</h2>

<pre><code>else if($page=='edit'){
      $id = $_POST['id'];
     $name = $_POST['nm'];
     $email = $_POST['em'];
     $phone = $_POST['ph'];
     $address = $_POST['ad'];

     $stmt = $db-&gt;prepare(" update crud set name=? , email=? , phone=? , address=? where id=?");  
     $stmt-&gt;bindValue(1,$name);
     $stmt-&gt;bindValue(2,$email);
     $stmt-&gt;bindValue(3,$phone);
     $stmt-&gt;bindValue(4,$address);
     $stmt-&gt;bindValue(5,$id);
     if($stmt-&gt;execute()){
        echo "succesfully updated";
     }
     else{
        echo "failed updated data";
     }
}
</code></pre>
