我有一个表,其结构如下:
表格1
name date company
Alice 19-01-01 A Global
Alice 19-03-01 C Global
Alice 19-03-01 C Global
Bob 19-01-01 B Corp
Alice 19-03-01 C Global
Bob 19-01-01 D Corp
Peter 19-02-01 E Subject
Peter 20-04-11 J Subject
如果我想在html中的名称之间添加一个空行以相互分隔,我该怎么办
$sql = "SELECT * from table1 order by name, date ASC";
$queryRecord = $conn->query($sql);
<?php foreach($queryRecord as $res) :?>
<table><tr><td>
<?php echo $res['name'];?>
</td><td>
<?php echo $res['date'];?>
<td>
<?php echo $res['company'];?>
</td></tr><?php endforeach ?>
</table>
繁星淼淼