Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

hayder

Catalogo de produtos

Recommended Posts

Pessoal,

o código a seguir é referente a um catalogo de produtos super simples, porem ele esta repentido os produtos (por exemplo na coluna 1 ele mostra o mesmo produto em todas as celulas na coluna dois ele faz a mesma coisa porem com outro produto). Alguem poderia me fazer a gentileza de apontar o q esta errado.

obrigada

<html><head><meta http-equiv="Content-Language" content="pt-br"><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Nova pagina 1</title></head><body><%Dim conexao_bd      Dim tabela Set conexao_bd=Server.CreateObject("ADODB.Connection")Set tabela=Server.CreateObject("ADODB.RecordSet")conexao_bd.Open "Banco"SQL = ""SQL = SQL + " Select"SQL = SQL + "     PRODUTO.PrdCampBmp"SQL = SQL + " From"SQL = SQL + "     produto   produto"tabela.Open SQL, conexao_bd%><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width:0; border-right-width:0" bordercolor="#111111" width="100%" id="AutoNumber1" height="86"><%Do While Not tabela.Eof%>  <tr>    <td width="24%" style="border-left-style:none; border-left-width:medium; border-top-style:solid; border-top-width:1; border-bottom-style:none; border-bottom-width:medium"     height="98">    <p align="center"><img border="0" width="95" height="80"     align="center" src="<%=tabela.Fields("PrdCampBmp")%>"></td>    <td width="1%" rowspan="2" style="border-left-style:solid; border-left-width:1; border-right-style:none; border-right-width:medium; border-top-style:solid; border-top-width:1"     height="79">    <p align="center"> </td>    <td width="24%" style="border-left-style:none; border-left-width:medium; border-right-style:solid; border-right-width:1; border-top-style:solid; border-top-width:1; border-bottom-style:none; border-bottom-width:medium"     height="98">    <p align="center"> <img border="0" width="95" height="80"     align="center" src="<%=tabela.Fields("PrdCampBmp")%>"></td>    <td width="1%" rowspan="2" style="border-left-style:solid; border-left-width:1; border-right-style:none; border-right-width:medium; border-top-style:solid; border-top-width:1"     height="79">    <p align="center"> </td>    <td width="24%" style="border-left-style:none; border-left-width:medium; border-right-style:solid; border-right-width:1; border-top-style:solid; border-top-width:1; border-bottom-style:none; border-bottom-width:medium"     height="98">    <p align="center"> <img border="0" width="95" height="80"     align="center" src="<%=tabela.Fields("PrdCampBmp")%>"></td>    <td width="1%" rowspan="2" style="border-left-style:solid; border-left-width:1; border-right-style:none; border-right-width:medium; border-top-style:solid; border-top-width:1"     height="79">    <p align="center"> </td>    <td width="23%" style="border-left-style:none; border-left-width:medium; border-right-style:none; border-right-width:medium; border-top-style:solid; border-top-width:1; border-bottom-style:none; border-bottom-width:medium"     height="98">    <p align="center"><img border="0" width="95" height="80"     align="center" src="<%=tabela.Fields("PrdCampBmp")%>"></td>  </tr>  <tr>    <td width="20%" align="center"         style="border-left:medium none #111111; border-top-style:none; border-top-width:medium; border-bottom-style:solid; border-bottom-width:1"     height="1" valign="top"><p align="center"><b><font size="2" face="Tahoma">Detalhes</font></b></td>    <td width="19%" align="center"         style="border-left-style:none; border-left-width:medium; border-right-style:solid; border-right-width:1; border-top-style:none; border-top-width:medium"     height="1" valign="top"><b><font size="2" face="Tahoma">Detalhes</font></b></td>    <td width="18%" align="center"         style="border-left-style:none; border-left-width:medium; border-right-style:solid; border-right-width:1; border-top-style:none; border-top-width:medium"     height="1" valign="top"><b><font size="2" face="Tahoma">Detalhes</font></b></td>    <td width="25%" align="center"         style="border-right:medium none #111111; border-left-style:none; border-left-width:medium; border-top-style:none; border-top-width:medium"     height="1" valign="top"><b><font size="2" face="Tahoma">Detalhes</font></b></td>  </tr>   <%tabela.MoveNextloop%>  </table></body></html>

ah a outra duvida é: como eu faço para qnd o usuário clicar em detalhes ele abri uma outra pagina com os detalhes daquele produto

Compartilhar este post


Link para o post
Compartilhar em outros sites

cara resposta para a pergunta 1bem o codigo ta enorme e confesso que não olhei direito, mas se ta repetindo é por que ta faltando um movenext entre as colunas acho que você só esta dando entre as linhasresposta para a pergunta 2crie a page e use como criterio de pesquisa um id do produto que você passará pela url para esta nova page...

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.