what would be the mysql query to select the next value from the column
I have a column named postOrder with values 1 2 3 4 5 6 etc i have tried:
SELECT * FROM table WHERE such=such ORDER BY postOrder ASC LIMIT 1
but sometimes i get the wrong row, like 4 instead of 3 I think i can remove the LIMIT 1 clause, but then I would have to do more work with php.
Any ideas how to make sure I always get the next row without having to get all the rows and then sort them with php? thanks.