[quote[
I display the 5 most recent blog articles based by the postnumber auto incremenet column.
If it sees I have #5, it will find 1-2-3-4-5. If 3 was absent due to a deletion in the database, it’ll display empty content for that section.
[/quote]
The 5 most recent blog articles:
$sql = "
SELECT PostNumber, DateTime, Content
FROM $tableName
ORDER BY PostNumber DESC
LIMIT 0,5
";
$result = mysql_query( $sql );
if (!$result) {
echo PostNumber;
echo "<br>";
echo DateTime;
echo "<br>";
echo Content
echo "<br>";
echo "<br>";
}
die;