in reply to database not in correct order
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: database not in correct order
by aquarium (Curate) on Nov 27, 2007 at 05:04 UTC | |
|
Re^2: database not in correct order
by CountZero (Bishop) on Nov 27, 2007 at 15:24 UTC |