title: While Loop taking ID value for a href
body: <p>while loop:</p>
  <pre><code>   &lt;tbody&gt;
                          &lt;?php while($row=$result-&gt;fetch_assoc()){ ?&gt;
                              &lt;tr&gt; 
                                  &lt;td&gt;&lt;?= $row['id']; ?&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;?= $row['fornavn']; ?&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;?= $row['efternavn']; ?&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;?= $row['mail']; ?&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;?= $row['kursistnummer']; ?&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;?= $row['unilogin']; ?&gt;&lt;/td&gt;
                                  &lt;td&gt;
                                  &lt;a href=&quot;read.php?id='. $row['id'] .'&quot; class=&quot;mr-3&quot; title=&quot;View Record&quot; data-toggle=&quot;tooltip&quot;&gt;&lt;span class=&quot;fa fa-eye&quot;&gt;&lt;/span&gt;&lt;/a&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;?php } ?&gt;
                      &lt;/tbody&gt;
  </code></pre>
  <p>when I press the a href for each record it always results in this url
  http://localhost/helloworld/read.php?id=%27.%20$row[%27id%27]%20.%27</p>
  <p>I think its the syntax of the  ---- &gt; <code>href=&quot;read.php?id='. $row['id'] .'&quot;</code> but I've tried all the variations that I can find as a php beginner, it's driving me nuts!</p>