| id(int) | title(varchar(255)) | content(text) |
---------------------------------------
| 1 | title1 | this a sample text 1 |
---------------------------------------
| 2 | title2 | this a sample text 2 |
---------------------------------------
| 3 | title3 | this a sample text 3 |
---------------------------------------
| 4 | title4 | this a sample text 4 |
---------------------------------------
| 5 | title5 | this a sample text 5 |
---------------------------------------
| 6 | title6 | this a sample text 6 |
`---------------------------------------`
When set DESC must be show
6 - 5 - 4 - 3 - 2 - 1(sort info of id 6 to 1)
When set ASC must be show
1 - 2 - 3 - 4 - 5 -6 (sort info of id 1 to 6)
Don't show info with correctly sort
why?
?>
For example: I have a table "post" with value :
And my example code:
When set DESC must be show 6 - 5 - 4 - 3 - 2 - 1(sort info of id 6 to 1) When set ASC must be show 1 - 2 - 3 - 4 - 5 -6 (sort info of id 1 to 6) Don't show info with correctly sort why? ?>