Re: Sorting data alphabetically

From: Date: Thu, 14 Dec 2000 23:44:43 +0000
Subject: Re: Sorting data alphabetically
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30380@lists.php.net to get a copy of this message
select * from table order by name On Thu, 14 Dec 2000, Ben Wiechman wrote: > > I'm working on a PHP/MySQL solution and I would like to sort the output of > my select statement in alphabetic order. > > I have a table with the following data > id - int > parent_id - int > name - name of item > > I would like to sort the data alphabetically by name before I print the data > to the screen. Is there some way I can do this with my select statement (and > I tried to rtfm... lol But I'm pretty new to this.) Or am I going to have to > build the output array in PHP somehow and sort it there? > > Ben > > > -- > 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 >

« previous php.general (#30380) next »