Re: [PHP] Re: ordered alpabeticaly list

2001-12-14 Thread Rodrigo Peres
Hi list, I'm using this script to generate an alphabetical list of names, and a .gif as separator. Thank's Gerard onorato for the code. But I'd like a help to make something that I always have problem. At this moment my script outputs a html table with 1 column, how can I make it outputs a 3 colu

RE: [PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Gerard Onorato
but it should work. Unless I stink... which I often do. -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: ordered alpabeticaly list Thnk's Mike, But what I really need is create a sep

Re: [PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Rodrigo Peres
Thnk's Mike, But what I really need is create a separation like this ex: A ab... ac.. ad.. B be... bee... .. for all the names in my table Thank's again Rodrigo on 12/13/01 4:30 PM, Mike Eheler at [EMAIL PROTECTED] wrote: > If I understand you correctly, you want to put a separator whe

[PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Mike Eheler
If I understand you correctly, you want to put a separator when the letter changes. Try this: $result = mysql_query('select name from people order by name'); $lastletter = ''; while ($data = mysql_fetch_array($result)) { $curletter = strtolower(substr($data['name'],0,1)); if ($curlett