Re: Re: ordered alpabeticaly list
| From: | Rodrigo Peres | Date: | Fri, 14 Dec 2001 12:56:42 +0000 |
| Subject: | Re: Re: ordered alpabeticaly list | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77734@lists.php.net to get a copy of this message | ||
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 column table???
this is the code.
$ultletra = '';
$row = '';
while($resultado = $query->dados()) {
$curletra = $resultado['letra'];
if($curletra != $ultletra) {
$row .= "<tr>\n<td>\n<img src=\"img/letras/$curletra.gif\"
width=\"24\" height=\"24\">\n</td>\n</tr>\n";
}
$row .= "<td><a
href=\"interna.php?cat=$resultado[Nome_Categoria]&celebID=$resultado[CelebID
]\">".$resultado['Nome_Artistico']."</a></td>\n";
$ultletra = $curletra;
}
Thank's in advance
Rodrigo