Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

MySQL Query Help

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

Domains4u

Account Closed
Impact
3
Hi there.

Ive got a databse running and an admin panel so i can add data. The data is displayed in a table.

When i add new data the new data ends up at the bottom of the post. Check www.UKGMC.com for an example.

Heres the code im using. How would i change it to display the newest data at the top?

Code:
$query = "SELECT CONCAT(dl_genre) AS genre, (dl_name) AS name, (dl_desc) AS dr, (dl_date) AS cat, (dl_link) AS link 
FROM dl ORDER BY dl_id ASC"; 
$result = @mysql_query ($query);
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
try:

PHP:
$query = "SELECT CONCAT(dl_genre) AS genre, (dl_name) AS name, (dl_desc) AS dr, (dl_date) AS cat, (dl_link) AS link 
FROM dl ORDER BY dl_id DESC";
 
0
Close
What he said. Change ASC (ascending order) to DESC (descending order) in your query. ;)
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Member card: see how many threads a member started
The member card now shows a Threads number, right after Posts. The member card is the box that opens when you point at a name. Profile...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back