Please try this:
$result = mysqli_query($con,"SELECT * FROM lista");;
?>
<html>
<table border="1">
<?php
if (mysqli_num_rows($result) > 0) {
// output data of each row
while($row = mysqli_fetch_assoc($result)) {
?>
<tr>
<td><?php echo $row['nazwiskoimie']?></td>
</tr>
<?php
}
} ?>
</table>
</html>
3
solved Mysql and php w/ html database issue