I need to show table data as date, I just do not know how to do the conversion.
It returns the result as it is in the database: 00000000
and need to return to 00/00/0000
I have the following code:
<?php while ($linha = mysqli_fetch_assoc($select)): ?>
<table>
<tr>
<th>Data:</th>
<td><?php echo $linha['DATA'] ?></td>
</tr>
</table>
<?php endwhile; ?>
My $select
only has SELECT * FROM
.