I have code like this
<table>
<tr>
<th>No</th>
<th>Title</th>
<th>Name</th>
</tr>
foreach($value as $item){
echo "<tr>";
echo "<td>".$item['no']."</td>";
echo "<td>".$item['title]."</td>";
echo "<td>".$item['data']."</td>";
echo "</tr>";
}
</table>
For example I have 5 items in my loop. My loop output now something like this:
| No | Title | Name |
|----|----------|-------|
| 1 | Book | Susan |
| 2 | Comic | Budi |
| 3 | Recipe | Anwar |
| 4 | Magazine| Leo |
| 5 | Novel | Clara |
But I want output like this with the looping header also
