title: php - html: Different data in each row of a the same column in a table
body: <p>I want to make a cell's data different in each row of the same column, according to the value of the $row['epilogh']:</p>
  <pre><code>&lt;tr&gt;
      &lt;td&gt; &lt;?php echo $row['id']; ?&gt; &lt;/td&gt;
      &lt;td&gt; &lt;?php echo $row['epilogh']; ?&gt; &lt;/td&gt;
      &lt;td&gt; &lt;?php echo $row['um_username']; ?&gt; &lt;/td&gt;
      &lt;td&gt; &lt;?php echo $row['myrole'];?&gt; &lt;/td&gt;
      &lt;td&gt; &lt;?php echo $row['request_date'];?&gt; &lt;/td&gt;
  
      &lt;!-- i want the following 2 td to be one and work in the above different cases  --&gt;
      &lt;td style=&quot;max-width: 250px; text-align: center;&quot;&gt;
      &lt;?php echo '&lt;a href=&quot;../make-solemn-declaration-pdf-sec/?id='.$row['id'].'&quot; target=&quot;_blank&quot;&gt;'.$row['id'].'&lt;/a&gt;';?&gt;
                                  &lt;form action=&quot;../make-solemn-declaration-pdf/?id=&lt;?php echo $id; ?&gt;&quot; method=&quot;POST&quot; target=&quot;_blank&quot;&gt;
                                      &lt;button type=&quot;submit&quot; name=&quot;btn-pdf&quot;&gt;Make a PDF&lt;/button&gt;
      &lt;/form&gt;
      &lt;/td&gt;
  
      &lt;td style=&quot;max-width: 250px&quot;&gt;  
          &lt;form method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot; action=&quot;../upload-file/?id=&lt;?php echo $row['id']; ?&gt;&quot;&gt;
              &lt;input type=&quot;file&quot; name=&quot;fileToUpload&quot; id=&quot;fileToUpload&quot; accept=&quot;.pdf&quot; required /&gt;
              &lt;br&gt;&lt;hr&gt;
              &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Upload&quot; /&gt;
              &lt;? echo &quot;$pdf&quot;;?&gt;
          &lt;/form&gt;
      &lt;/td&gt;
  
      &lt;td&gt; &lt;a href=&quot;../pistop-delete/?id=&lt;?php echo $row['id']; ?&gt;&quot;&gt;Delete&lt;/a&gt; &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  <p>So let's say that if <code>$row['epilogh']</code> is 'A' I want a form so a file could be uploaded. On the other hand when <code>$row['epilogh']</code> is 'B' I want to have a link there for another page. How can I do this?</p>