Galeria de imagens
Pelo amor de Deus alguém sabe como fazer isso?
eu tó o dia todo tentando e não consigo de jeito nenhum :huh:
eu fiz uma pagina com uma tabela com 3 colunas e * de linhas
as miniaturas das imagens aparecem dentro das células
o problema é q tá repetindo
aparece o seguinte na tela:
Linha 1:
<tr>
<td> imagem 1 </td>
<td> imagem 1 </td>
<td> imagem 1 </td>
</tr>
o certo seria:
<tr>
<td> imagem 1 </td>
<td> imagem 2 </td>
<td> imagem 3 </td>
</tr>
daí continua a mostrar o restante até acabar de exibir todas as figurinhas
<?php//Connection statementrequire_once('Connections/imagem.php');// begin Recordset$query_Recordset1 = "SELECT * FROM tb_imagem ORDER BY cam_id DESC";$Recordset1 = $imagem->SelectLimit($query_Recordset1) or die($imagem->ErrorMsg());$totalRows_Recordset1 = $Recordset1->RecordCount();// end Recordset //PHP ADODB document - made with PHAkt 2.4.0?><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><table width="100%" border="1" cellspacing="1" cellpadding="1"> <?php while (!$Recordset1->EOF) {?> <tr> <td><a href="<?php echo $Recordset1->Fields('cam_url'); ?>" target="_blank"><img src="<?php echo $Recordset1->Fields('cam_imagem'); ?>" alt="" width="100" border="0"></a></td> <td><a href="<?php echo $Recordset1->Fields('cam_url'); ?>" target="_blank"><img src="<?php echo $Recordset1->Fields('cam_imagem'); ?>" alt="" width="100" border="0"></a></td> <td><a href="<?php echo $Recordset1->Fields('cam_url'); ?>" target="_blank"><img src="<?php echo $Recordset1->Fields('cam_imagem'); ?>" alt="" width="100" border="0"></a></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <?php $Recordset1->MoveNext(); }?></table></body></html><?php$Recordset1->Close();?>Discussão (3)
Carregando comentários...