hello everyone,
I have a PHP query:
$sql = mysqli_query($conn, "SELECT ip
, host
, page
, DATE_FORMAT(date, '%m/%d/%y') as date
, TIME_FORMAT(time, '%T') as time
FROM tblTraffic
ORDER BY date DESC, time DESC");
and I’m echoing out the results in this code:
<?php
// printing table rows
while($row = mysqli_fetch_row($sql)) {
echo '<tr>';
foreach ($row as $key => $col) {
echo "<td>$col</td>"; }
echo '</tr>';
}
?>
</table>
however, in the attached image you can see what I’m getting as an output. I don’t think my code is wrong. Can someone here maybe see something that is wrong with this?
VISITOR IP ADDRESS, ISP NAME | VISITOR DOMAIN ADDRESS | PAGE VISITED | DATE | TIME |
---|