Jump to content


nfgMutaum

Member Since 01/07/2008
Offline Last Active 03/10/2011, 14:47
-----

Topics I've Started

Listando Conteúdo

31/01/2010, 17:46

ão to conseguindo listar meu comnteudo em 3 colunas... alguem pode me ajudar?

o codigo ta assim:

<?php
//*********************************************************************
// CONFIGURAÇÃO DE BANCO DE DADOS
//*********************************************************************
$con = mysql_connect('localhost','root','');
$bd = mysql_select_db('bd');
?>
<span class="style20">
<?php
$busca = mysql_query("SELECT * FROM __circuito order by nome");
while($anu = mysql_fetch_array($busca)){
$id = $anu["id"];
$nome = $anu["nome"];
?>
</span></p><table width="400" border="0"> 
<?php 
$cont = 1; 
for($i = 1; $i <= 1; $i++) 
{ 
if($cont == 1) 
{ 
print("<tr>"); 
} 
?> 
<td><img src="cadastro/fotos/thumb_<?=$anu['imagem'];?>" /><br />
<span class="style22">
<?=$nome?>
</span></td> 
<?php 
if($cont == 1) 
{ 
print("</tr>"); 
$cont = 1; 
} else 
{ 
$cont++; 
} 
} 
?> 
<?php
}

?></table>
<p><span class="style20">

</span> 

IPB Skin By Virteq