RE: [PHP] sort in mysql
| From: | Jeff Oien | Date: | Wed, 14 Mar 2001 16:42:37 +0000 |
| Subject: | RE: [PHP] sort in mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43870@lists.php.net to get a copy of this message | ||
ORDER BY hits
default is ascending (ASC). Otherwise
ORDER BY hits DESC
Jeff Oien
> hi
>
> I have a database with some urls and numbers. There are currently 2 records
> in the database. I wanna sort them by the numbers. How should i do it?
> my table is like
>
> name hits
> john 343
> scott 3423
>
> any suggestions would be greatly appreciated!
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>