Reversing whats returned from a mysql_query?

They have: 45 posts

Joined: Feb 2002

Is it possible at all? If you know how I could do it, it would be a great help.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

What do you mean? Sorting the output?

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Assuming that you are meaning sorting, it goes like this;
SELECT fieldname from tablename
ORDER BY fieldname DESC

This will reverse the sort order.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

They have: 45 posts

Joined: Feb 2002

Quote: Originally posted by mairving
Assuming that you are meaning sorting, it goes like this;
SELECT fieldname from tablename
ORDER BY fieldname DESC

This will reverse the sort order.

Thanks a lot, that worked perfectly.

They have: 157 posts

Joined: Mar 2002

Original post removed.

Note: theprofessional, please don't take credit for problems you didn't solve.

Regards,
Peter J. Boettcher

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.