Re: ? php & mysql
| From: | Phil Lambert | Date: | Mon, 10 Jul 2000 12:45:22 +0000 |
| Subject: | Re: ? php & mysql | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1000@lists.php.net to get a copy of this message | ||
Try
SELECT * from <NameTable> ORDER BY <namecolumn> ASC;
the ASC part is optional (you can also use DESC for a descending ordered
list)
hope its a help
flip
----- Original Message -----
From: Joanna <joanna@tamqfl1-ar3-220-024.dsl.gtei.net>
To: <php-db@lists.php.net>
Sent: Monday, July 10, 2000 12:40 PM
Subject: [PHP-DB] ? php & mysql
Hi all, I'm pretty new to this so please bare with me.
Here is my problem:
Lets say I have a table with names in the db. And I want
to print them out in Alphabetical order, how do I do that?
thanks
Joanna
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net