title: Why table fields are not showing values like first three fields?
body: <p>Here is some short Code of table.I am using echo in table. </p>
  
  <p>The data is not printing as first three fields.</p>
  
  <pre><code>   echo "&lt;table&gt;";
      echo "&lt;tr&gt;
          &lt;th&gt;ID&lt;/th&gt;
          &lt;th&gt;Date&lt;/th&gt;
          &lt;th&gt;Reference&lt;/th&gt;
          &lt;/tr&gt;" ;
      while ($row = $result-&gt;fetch_object())
      {
          echo "&lt;td&gt;" . $row-&gt;id . "&lt;/td&gt;";
          echo "&lt;td&gt;" . $row-&gt;date . "&lt;/td&gt;";
          echo "&lt;td&gt;" . $row-&gt;ref . "&lt;/td&gt;";
              }
      echo "  &lt;tr&gt;
          &lt;th&gt;First Name&lt;/th&gt;
          &lt;th&gt;Father Name&lt;/th&gt;
          &lt;th&gt;Phone&lt;/th&gt;
          &lt;/tr&gt;";
      while ($row = $result-&gt;fetch_object())
      {
      echo "&lt;td&gt;" . $row-&gt;name . "&lt;/td&gt;";
                      echo "&lt;td&gt;" . $row-&gt;fname . "&lt;/td&gt;";
          echo "&lt;td&gt;" . $row-&gt;cell . "&lt;/td&gt;";
      }
      echo "&lt;tr&gt;
          &lt;th&gt;District&lt;/th&gt;
          &lt;th&gt;Address&lt;/th&gt;
          &lt;th&gt;Gender&lt;/th&gt;
          &lt;/tr&gt;";
      while ($row = $result-&gt;fetch_object())
      {
      echo "&lt;td&gt;" . $row-&gt;district . "&lt;/td&gt;";
              echo "&lt;td&gt;" . $row-&gt;address . "&lt;/td&gt;";
      echo "&lt;td&gt;" . $row-&gt;gender . "&lt;/td&gt;";
      }
      echo "&lt;/table&gt;";
  </code></pre>
  
  <p>Table Output Image</p>
  
  <p><img src="https://i.stack.imgur.com/VuuOL.png" alt="Table Output Image"></p>