Re: sorry...probably too easy

From: Date: Wed, 05 Dec 2001 19:27:40 +0000
Subject: Re: sorry...probably too easy
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14827@lists.php.net to get a copy of this message
> is there a function that will extract the first character from a mysql > result and put it into a variable? you can do it directly in SQL: select * from TABLE_NAME where FIELD_NAME like 'A%' for all names beginning by 'A' cheers, Valter Santos ----- Original Message ----- From: "Mateo the DB guy" <whyyousee@yahoo.com> To: <php-db@lists.php.net> Sent: Wednesday, December 05, 2001 6:49 PM Subject: [PHP-DB] sorry...probably too easy > 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: 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 > >

« previous php.db (#14827) next »