I am wanting find a way I can set a limit to only show 1 row from a table and also show the 1 that is by the latest created date which is a column on the row also.
<?php
$q = "SELECT * FROM nots";
$r = mysqli_query($dbc, $q);
while ($row = mysqli_fetch_array($r)) {
echo '<div style="background-color: red; box-sizing: border-box; padding: 20px; margin: 20px 10px; border-radius: 6px; color: #fff;">' . $row['not_name'] . '<br>' . $row['not_content'] . '</div>';
}
?>