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

[Question] Order by date

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Mike_Wiseman

Established Member
Impact
3
Hello.

I am trying to get my tutorial system to echo the tutorials in the order of Earliest to Latest. I have searched pixel2life but i do not know excactly what to search so i didnt have any luck finding any results.

Is it possible you guys could either referr me to a site or even help me out yourself?

Thanks
Mike_Wiseman

[EDIT]

I have figured out how to do it:
PHP:
$query = mysql_query("SELECT * FROM table order by date DESC");

If anyone else is having the same problem, that code works for me.
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Just one remark by the way: be careful when naming table fields, not to use reserved keywords. I'm not sure 'date' is a reserved keyword in mysql but it could be with other database software. This may cause problems when executing queries.
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back