Why am I suddenly getting an error?

@RyanReese

[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;

That’s extremely smart. I will just have to live with the database being out of wack with potential strays of numbers missing. Heck, I don’t even need that column actualy anymore now with Rudys advice.

I have a race to run tomorrow+getting glasses, but I’ll try to put some time to update the code by Sunday. Thanks :).