I have been trying to find solution to this issue. So here I give an example :
date item
-------------------
1-Jan-19 aaa
2-Jan-19 bbb
3-Jan-19 ccc
4-Jan-19 ddd
5-Jan-19 eee
6-Jan-19 fff
7-Jan-19 ggg
8-Jan-19 hhh
9-Jan-19 iii
10-Jan-19 jjj
11-Jan-19 kkk
So far I try with this code, but this its only show data separated by 7 data per row. This code that I use,
<?php
$i = 0;
$limit = 7;
$query = mysqli_query("SELECT * FROM mytable");
foreach ($query as $query) {
if ($i >= $limit) {
echo "<tr></tr>";
$i = 0;
}
$i++;
?>
<td><?php echo $query['item'];?></td> <?php } ?>
that show,
#monday #tuesday #wednesday #thursday #friday #saturday #sunday
aaa bbb ccc ddd eee fff ggg
hhh iii jjj kkk
I want to show data like this,
#monday #tuesday #wednesday #thursday #friday #saturday #sunday
--- aaa bbb ccc ddd eee fff
ggg hhh iii jjj kkk
How to fix this? No need to show name of days, above just for example