Jump to content


nfgMutaum

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

Posts I've Made

In Topic: Listando Conteúdo

01/02/2010, 12:10

Consegui Bob!

Muito Obrigado!!!

In Topic: Listando Em 4 Colunas

31/01/2010, 17:21

Pessoal... não to conseguindo fazer no meu...

esta da seguinte maneira:


<?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