title: Retrieve Data from data base to html form on button CLICK
body: <p>I am actually starting my newest codes with HTML/PHP .
  I am searching for retrieving data (list of persons) from mysql Data Base, displaying it into html table, then when I will clik on button "edit" it will show me in another page the details of the selected person like this :</p>
  
  <p><img src="https://i.stack.imgur.com/sLiCn.png" alt="List of persons"></p>
  
  <p>It works fine for all the rows expects the firt row of the table.
  Any help please !!!
  there is my code :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table border = 1&gt; 
      &lt;caption&gt; Liste des personnes &lt;/caption&gt; 
      &lt;tr&gt;
          &lt;th&gt;id &lt;/th&gt;
          &lt;th&gt;nom&lt;/th&gt;
          &lt;th&gt;prenom&lt;/th&gt;
          &lt;th&gt;date Naissance&lt;/th&gt;
          &lt;th&gt;sexe&lt;/th&gt;
          &lt;th&gt;ville&lt;/th&gt;
          &lt;th&gt;comptence&lt;/th&gt;
          &lt;th&gt;photo&lt;/th&gt;
      &lt;/tr&gt;
      &lt;?php while ($obj = mysqli_fetch_object($result)){ ?&gt; 
      &lt;tr&gt;
          &lt;td&gt; &lt;?= $obj-&gt;id ?&gt; &lt;/td&gt;
          &lt;td&gt;&lt;?= $obj-&gt;nom?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?= $obj-&gt;prenom?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?= $obj-&gt;dateNaissance?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?= $obj-&gt;sexe?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?= $obj-&gt;ville?&gt;&lt;/td&gt; 
          &lt;td&gt;&lt;?= $obj-&gt;competence?&gt;&lt;/td&gt;
          &lt;?php if (isset($obj-&gt;photo)) {?&gt;
          &lt;td&gt;&lt;img src="uploads/&lt;?= $obj-&gt;photo?&gt;" width =20 height = 20 &gt;
          &lt;?php } ?&gt;
          &lt;td&gt;
          &lt;form name="editPerson" action="edit.php" method="POST"&gt;
              &lt;input type="hidden" name="id" value="&lt;?=  $obj-&gt;id  ?&gt;"&gt;
              &lt;input type="submit" name="editer" value="Edit"&gt;
          &lt;/form&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;?php } ?&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>