Hi list,

I've tried for many times, but couldn't make a table with 3 columns and n
This is my code, someone please, can help in make it outputs a 3 column

$sql = "SELECT 
lcase(left(Nome_Artistico,1)) as letra FROM categorias LEFT JOIN
celebridades ON categorias.CategoriaID=celebridades.Categoria  WHERE
CategoriaID='1' ORDER BY Nome_Artistico";
$query = new Query($conexao);

$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
    $ultletra = $curletra;


Thank's in advance

Rodrigo Peres

PHP General 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