1
I need to show table data as date, I just don’t know how to do the conversion.
It returns the result as it is in the database: 00000000
and I need to get back 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; ?>
Man $select
only has the SELECT * FROM
.
In the bank is
00000000
same or is0000-00-00
?– JuniorNunes
why in the database you do not save date instead of string? and even if it is string, why remove formatting?
– rLinhares