Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

Re: [PHP] list "a", list "b" ...etc From: 1LT John W. Holmes (holmes072000 <email protected>)
Date: 02/21/03

> 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