ascend / descend

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AliJay
Forum Newbie
Posts: 14
Joined: Mon Nov 24, 2003 11:42 am

ascend / descend

Post by AliJay »

how can i make things descend rather than asscend (please excuse spelling)
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

I'm guessing you're talking about a MySQL query but next time be sure to give all the info about the problem you're having.

Heres an example:

Code: Select all

$query = "SELECT * FROM tbl_name WHERE foo='$bar' ORDER BY '$somevar' DESC";
AliJay
Forum Newbie
Posts: 14
Joined: Mon Nov 24, 2003 11:42 am

Post by AliJay »

thanks and i will be more careful in the future
Post Reply