First, don't write echo every time, you can easily add class=""
or style=""
attribute to any html element
, and also write class name
or inline style
inside them. You didn't see link because your html structure was wrong, you wrote <span><a>title</a></span>
outside of <td>
element, that is why you didn't sew link.
Try to write your codes clearly it will help you to find problems easily.
<table>
<?php
$sql="SELECT * FROM presta_prova " ;
$result=mysqli_query($con,$sql);
while($row=mysqli_fetch_array($result)) {
?>
<tr>
<td><?php echo $row[ "marca"];?></td>
<td>
<span class="tab">
<a href="#"><?php echo $row["categoria"];?></a>
</span>
</td>
<td><?php echo $row[ "descrizione"];?></td>
</tr>
<?php
}
?>
</table>