solved my own problem.
if anyone else needs it, the function is substr($string, firstposition,
number)
http://www.devshed.com/Server_Side/PHP/StringTheory/page4.html

Mateo The Db Guy wrote:

> i'm fairly new to php, and thank you in advance for helping.
> is there a function that will extract the first character from a mysql
> result and put it into a variable?
> the goal is to make one of these  browse-by-alpha lists
>
> ABCDEFGHIJKLMNOPQRSTUVWXYZ
> A
> Adam
> Alethea
> Arnie
> B
> Billy
> Buster
> ...
>
> where all the names come from the mysql query, and the anchors are
> automatically built where they need to be.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to