I want to get the result from the current and the last row from mysqli so I can see how the values changed. I need this for a statistical counter for my website
- row 1 = 400
- row 2 = 500
- row 3 = 650
This is my code so far:
while ($row = $Result->fetch_object())
{
echo '
<tr>
<td>'.add_date_create($row->stat_AddTime).', '.add_time_create($row->stat_AddTime).'</td>
<td>'.$row->stat_hacks_view.' +('.$row->stat_hacks_view-$row_stat_hacks_view--.')</td>
<td>'.$row->stat_hacks_count.'</td>
<td>'.$row->stat_game_view.'</td>
<td>'.$row->stat_dev_count.'</td>
</tr>
';
}
[...]
The result should be something like this:
- blabla row 1 400 +(400)
- blabla row 2 500 +(100)
- blabla row 3 650 +(150)
I hope I could explain what I mean.
I want to get that with fetch_object()
if possible
Thanks!