php-general | 2003022
Date: 02/21/03
- Next message: 1LT John W. Holmes: "Re: [PHP] small ads system"
- Previous message: Lowell Allen: "Re: [PHP] Re: session expiration"
- In reply to: Simon: "[PHP] list "a", list "b" ...etc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> how can i sort names by first letter, like, show only names starting
> with a, then b, c .. etc
Where is the data? In an array? database? file?
If it's a database, then you can just do
SELECT * FROM table WHERE column LIKE 'a%'
or
SELECT * FROM table WHERE LEFT(column,1) = 'a'
---John Holmes...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: 1LT John W. Holmes: "Re: [PHP] small ads system"
- Previous message: Lowell Allen: "Re: [PHP] Re: session expiration"
- In reply to: Simon: "[PHP] list "a", list "b" ...etc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

