Jump to content

about displaying


hanwei

Recommended Posts

hi, i have a small question.

i have created a table to be displayed in my php script. The data displayed is from my mySQL database. I do a select * to display all the result on my table. And my table looks like this:

--------------------------------
1. AAA xxx xxx xxx
2. BBB xxx xxx xxx
3. CCC xxx xxx xxx
4. DDD xxx xxx xxx
5. EEE xxx xxx xxx
--------------------------------
The numbering is from the smallest to the largest. So i would like to know is there any method to make the numbering from the largest to the smallest?? Because whenever a data is inserted to my database, the number will automatically increase, so i would like to display the recent data that have been created. Can anyone teach me how to do it??

e.g
---------------------------------
5. EEE xxx xxx xxx
4. DDD xxx xxx xxx
3. CCC xxx xxx xxx
2. BBB xxx xxx xxx
1. AAA xxx xxx xxx
--------------------------------
thanks in advance..:D
Link to comment
https://forums.phpfreaks.com/topic/33590-about-displaying/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.