If this is a table in a MySQL database, I would change the posttime column to be a TIMESTAMP data type. That will remove the need for you to have insert that field.
And as Dragonchild said, you cannot guarantee order in a database without an ORDER BY in your select statement. Primary keys for doing a sort are a bad approach. Do an ORDER BY on the posttime column, especially if you take my advice and have it as a TIMESTAMP.
In reply to Re: database not in correct order
by Herkum
in thread database not in correct order
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |