milky: Liste der Anfangsbuchstaben

Beitrag lesen

Hey,

Probier das doch am besten mal gleich mit SQL:

mysql_query("
   SELECT  SUBSTRING(lname, 1, 1) AS anfang
      FROM members
      GROUP BY anfang
");

Mit ORDER BY (zusätzlich zu GROUP BY), könntest du dann noch sortieren...

MsF,
milky

--
This message is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Mailing List for more details.