My table comprises three columns in each row, and I am looking to include a link next to each row.
<table>
<th>
Name:
</th>
<th>
Price:
</th>
<th>
Description
</th>
<?php while ($row = $foods->fetch()) { ?>
<tr>
<td>
<?php echo $row['Name']; ?>
</td>
<td>
<?php echo $row['foodPrice']; ?>
</td>
<td>
<?php echo $row['foodDescription']; ?>
</td>
<a class="editLink">roma</a>
</tr>
<?php } ?>
</table>
I attempted to place the link a
following the last td
, but it appears at the top of the table instead. Thank you in advance for your help.