Re: list entries alphabetically

From: Date: Wed, 15 Aug 2001 21:00:07 +0000
Subject: Re: list entries alphabetically
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11404@lists.php.net to get a copy of this message
$query = "SELECT * FROM table WHERE field = 'criteria' ORDER BY field"; $result = mysql_query("db","$query"); this sort order is ascending. to get descending order, use: ORDER BY field DESC you should, however, go to the previously recommended site for a tutorial. your questions will be answered in spades there. cheerio. kate At 10:44 PM 8/15/2001 +0200, Andrius Jakutis wrote: >Hello again, > >How to list entries alphabeticall way? > >Using MYSQL. > >Thanks >

« previous php.db (#11404) next »