Jump to content

Displaying SQL Tables


Unholy Prayer

Recommended Posts

This is probably a noob question, but how do I change the order that table fields are displayed in?
This is my query:
[code]
$result = mysql_query("select * from news order by id limit 5");
[/code]

Instead of displaying the news from the first news posted to the most recent news posted, I want the most recent news posted displayed first.
Link to comment
https://forums.phpfreaks.com/topic/28568-displaying-sql-tables/
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.