<form method="post">
<table>
<tbody>
<?php
$projects = project_view();
foreach ($projects as $project) {
?>
<tr>
<td><?php echo $project['id']; ?></td>
<td><?php echo $project['name']; ?></td>
<td><input type="submit" class="button" name="<?php echo $project['id'] ?>" value="Удалить"></td>
</tr>
<?php
}
?>
</tbody>
</table>
</form>