Simple Question

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Wed Jan 25, 2006 3:47 am    Post subject: Simple Question Reply with quote

One simple question reguarding MySQL queries: What additional query do I need to add so that the results that normally come last are first?

Let me know if you need more info.
Back to top View user's profile Send private message Send e-mail
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Wed Jan 25, 2006 6:47 am    Post subject: Reply with quote

Err, the order clause in SELECT?
Code:
SELECT * FROM `my_table` WHERE `something` = '1' ORDER BY `id` DESC

_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Wed Jan 25, 2006 3:24 pm    Post subject: Reply with quote

Oh, yea. I forgot to add id's... better do that :D
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group