Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.