Jump to content


Photo

Sistema Do Tipo Www.apimentado.com.br


  • Faça o login para participar
56 replies to this topic

#31 thiagorsl

thiagorsl
  • Visitantes

Posted 03/04/2004, 15:16

Ele não esta pegando o tulimo esta mostrando a partir do ultimo provavelmente vc só deve ter um conto cadastrado por isso que esta mostando um;)

#32 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 15:27

nem cara.. tem varios
olha:

http://www.correthos...ia=Gays&conto=5

http://www.correthos...ia=Gays&conto=7

http://www.correthos...ia=Gays&conto=2

:wacko:
"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."

#33 thiagorsl

thiagorsl
  • Visitantes

Posted 03/04/2004, 15:35

Ja sei vc não fazendo um while faça um whiel para pode colocar todos os arquivos while($dados=mysql_fetch_array($sql)){

}

pronto acho que isso deve resolver ;)

#34 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 15:44

http://www.correthos...?categoria=Gays

agora nao aparece nenhum conto

<?
while($dados=mysql_fetch_array($sql)){

}
?>

esse codigo que pega a tabela toda que vai aparecer os dados
"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."

#35 thiagorsl

thiagorsl
  • Visitantes

Posted 03/04/2004, 15:47

Passe o codgio inteiro como estar 100 dividi-lo em nenhum a parte para ver como ele esta e arruma-lo saiba que não costuma fazer isso :P

#36 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 15:55

to ligado..mas vc esta vendo que nao esta dando certo mesmo.. :(

listacontos.php
<?php

include("conexao.php");
 mysql_connect($host,$user,$pass) or die ("Impossivel Conectar ao Servidor MySQL");
 mysql_select_db($db) or die ("Impossivel Abrir Database");

 $sql = mysql_query("SELECT * FROM cont_ero where categoria='$categoria' order by id DESC") or die (mysql_error()); 

?>
<html>
<head>
<title>..: Contos Brasil :..</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body background="bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="770" border="0" cellpadding="0" cellspacing="0" background="../bgtexto.gif">
  <!--DWLayoutTable-->
  <tr> 
    <td width="3" height="81">&nbsp;</td>
    <td width="290" align="center" valign="middle"><a href="/home.php"><img src="cima.gif" alt="P&aacute;gina Principal" width="267" height="51" border="0"></a></td>
    
  </tr>
  <tr> 
    <td height="0"></td>
    <td></td>
    <td></td>
  </tr>
</table>

<table width="770" border="0" cellpadding="0" cellspacing="0" background="bgtexto.gif">
  <!--DWLayoutTable-->
  <tr> 
    <td width="770" height="6"></td>
  </tr>
  <tr>
    <td height="41" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="barra.gif">
        <!--DWLayoutTable-->
        <tr> 
          <td width="12" height="30"></td>
          <td width="303" align="left" valign="middle"><font color="#FFCCFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Contos Brasil possui <b><?
              $query = mysql_query("SELECT count(*) FROM cont_ero;");
                                                  $total = mysql_result($query,0);
                                                  echo $total;
             ?></b>
                                                  contos cadastrados.</font></td>
          <td width="188">&nbsp;</td>
          <td width="73" valign="top"><a href="/anuncie/"><img src="pixel.gif" alt="Anuncie no apimentado!" width="1" height="1" border="0"></a></td>
          <td width="77" valign="top"><a href="/contato/"><img src="pixel.gif" alt="Fale Conosco!" width="1" height="1" border="0"></a></td>
          <td width="117" valign="middle"><a href="/home.php"><img src="pixel.gif" alt="P&aacute;gina Principal" width="1" height="1" border="0"></a></td>
        </tr>
        <tr> 
          <td height="11"></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td height="14"></td>
  </tr>
</table>
<table width="770" border="0" cellpadding="0" cellspacing="0" background="bgtexto.gif" bgcolor="#FFFFFF">
  <!--DWLayoutTable-->
  <tr> 
    <td width="167" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr> 
          <td width="9" height="395">&nbsp;</td>
          <td width="158" valign="top"> 
            

<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr> 
          <td width="157" height="285" valign="top"><table width="157" border="0" cellpadding="0" cellspacing="0" background="menu.gif">
              <!--DWLayoutTable-->
              <tr> 
                <td width="156" height="24">&nbsp;</td>
                <td width="1"></td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="22" colspan="2"><a href="http://www.correthos.com.br/filled/contos-eroticos/listacontos.php?categoria=Fetiches"><img src="pixel.gif" alt="Fetiches" width="1" height="1" border="0"></a></td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="20"><a href="http://www.correthos.com.br/filled/contos-eroticos/listacontos.php?categoria=Gays"><img src="pixel.gif" alt="Gays" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="19"><a href="http://www.correthos.com.br/filled/contos-eroticos/listacontos.php?categoria=Heterosexuais"><img src="pixel.gif" alt="Heterosexuais" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="25"><a href="http://www.correthos.com.br/filled/contos-eroticos/listacontos.php?categoria=Incestos"><img src="pixel.gif" alt="Incestos" width="8" height="8" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="18"><a href="http://www.correthos.com.br/filled/contos-eroticos/listacontos.php?categoria=L%E9sbicas"><img src="pixel.gif" alt="L&eacute;sbicas" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="21"><a href="http://www.correthos.com.br/filled/contos-eroticos/listacontos.php?categoria=Orgias"><img src="pixel.gif" alt="Orgias" width="8" height="8" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="21"><a href="http://www.correthos.com.br/filled/contos-eroticos/listacontos.php?categoria=Sadomasoquismo"><img src="pixel.gif" alt="Sadomasoquismo" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                
          <td height="21"><a href="/maislidos/"><img src="pixel.gif" alt="Os contos mais lidos" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                
          <td height="21"><a href="/maisvotados/"><img src="pixel.gif" alt="Os contos mais lidos" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                
          <td height="22"><a href="/cadastro/"><img src="pixel.gif" alt="Cadastre-se &eacute; gr&aacute;tis!" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                
          <td height="24"><a href="/cadastro/cadastraconto.php"><img src="pixel.gif" alt="Envie seu conto!" width="1" height="1" border="0"></a></td>
                <td></td>
              </tr>
              <tr align="center" valign="middle"> 
                
          <td height="26" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="110"></td>
        </tr>
      </table>
   
   <img src="http://uv.terra.com.br/UV?c=virgula" width="0" height="0" alt="" border="0">          </td>
        </tr>
      </table></td>
    <td width="81" height="189">&nbsp;</td>
    <td width="501" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr> 
          <td width="439" height="189" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr> 
<?
while($dados=mysql_fetch_array($sql)){

}
?>
                <td width="439" height="24" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="categoria.gif">
                    <!--DWLayoutTable-->
                    <tr> 
   	 
                      <td width="295" height="24">&nbsp;</td>
                      <td width="131" align="center" valign="middle" class="TituloUltimos"><a href="listacontos.php?categoria="><? "$dados[categoria]"; ?></a></td>
                      <td width="13">&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="56" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="450" height="56" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="450" height="56" align="center" valign="middle"> 
                               <font face=Arial size=2 color=ff0000><b>0&nbsp;</b></font>                               &nbsp;</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="59" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <!--DWLayoutTable-->
                   
        <tr> 
   	 
                      <td width="15" height="20" align="right" valign="middle"><img src="seta.gif" width="10" height="7"></td>
                      <td width="10">&nbsp;</td>
                      <td width="414" valign="middle" class="TituloDentro"><a href="http://www.correthos.com.br/filled/contos-eroticos/lerconto.php?categoria=<? echo "$dados[categoria]"; ?>&conto=<? echo "$dados[id]"; ?>"><span class="UltimosData"> (<? echo "$dados[data]"; ?>) </span> <? echo "$dados[titulo]"; ?></a><span class="TextoPeq"> (Autor: <? echo "$dados[autor]"; ?>) </span></td>
                    </tr>
          <tr bgcolor="#FFCCFF"> 
                      <td height="1" colspan="3" valign="top" background="pontos.gif"><img src="pixel.gif" width="1" height="1"></td>
                    </tr>                    <tr> 
                      <td height="0">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="69" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="450" height="53" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="450" height="53" align="center" valign="middle"> 
                               <font face=Arial size=2 color=ff0000><b>0&nbsp; </b></font></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td height="16"></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          <td width="62">&nbsp;</td>
        </tr>
      </table></td>
    <td width="1">&nbsp;</td>
  </tr>
  <tr>
    <td height="1">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td height="1"></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>

<table width="770" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF99CC">
  <!--DWLayoutTable-->
  <tr> 
    <td width="770" height="31" align="center" valign="middle"><font color="#9A4E9A" size="1" face="Arial, Helvetica, sans-serif">APIMENTADO.COM 
      2003 &copy; Todos os direitos reservados.</font></td>
  </tr>
</table></body>
</html>

"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."

#37 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 15:58

eu quero fazer aparecer todos os resultdos e depois colocar uma paginação
"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."

#38 thiagorsl

thiagorsl
  • Visitantes

Posted 03/04/2004, 16:00

Olha kra não é só colocar o while não vc tem que colocar o codigo dentro dele né :P

<?php

include("conexao.php");
mysql_connect($host,$user,$pass) or die ("Impossivel Conectar ao Servidor MySQL");
mysql_select_db($db) or die ("Impossivel Abrir Database");

$sql = mysql_query("SELECT * FROM cont_ero where categoria='$categoria' order by id DESC") or die (mysql_error());

?>
<html>
<head>
<title>..: Contos Brasil :..</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body background="bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="770" border="0" cellpadding="0" cellspacing="0" background="../bgtexto.gif">
<!--DWLayoutTable-->
<tr>
   <td width="3" height="81">&nbsp;</td>
   <td width="290" align="center" valign="middle"><a href="/home.php"><img src="cima.gif" alt="P&aacute;gina Principal" width="267" height="51" border="0"></a></td>
  
</tr>
<tr>
   <td height="0"></td>
   <td></td>
   <td></td>
</tr>
</table>

<table width="770" border="0" cellpadding="0" cellspacing="0" background="bgtexto.gif">
<!--DWLayoutTable-->
<tr>
   <td width="770" height="6"></td>
</tr>
<tr>
   <td height="41" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="barra.gif">
       <!--DWLayoutTable-->
       <tr>
         <td width="12" height="30"></td>
         <td width="303" align="left" valign="middle"><font color="#FFCCFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Contos Brasil possui <b><?
             $query = mysql_query("SELECT count(*) FROM cont_ero;");
                                                 $total = mysql_result($query,0);
                                                 echo $total;
            ?></b>
                                                 contos cadastrados.</font></td>
         <td width="188">&nbsp;</td>
         <td width="73" valign="top"><a href="/anuncie/"><img src="pixel.gif" alt="Anuncie no apimentado!" width="1" height="1" border="0"></a></td>
         <td width="77" valign="top"><a href="/contato/"><img src="pixel.gif" alt="Fale Conosco!" width="1" height="1" border="0"></a></td>
         <td width="117" valign="middle"><a href="/home.php"><img src="pixel.gif" alt="P&aacute;gina Principal" width="1" height="1" border="0"></a></td>
       </tr>
       <tr>
         <td height="11"></td>
         <td></td>
         <td></td>
         <td></td>
         <td></td>
         <td></td>
       </tr>
     </table></td>
</tr>
<tr>
   <td height="14"></td>
</tr>
</table>
<table width="770" border="0" cellpadding="0" cellspacing="0" background="bgtexto.gif" bgcolor="#FFFFFF">
<!--DWLayoutTable-->
<tr>
   <td width="167" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
       <!--DWLayoutTable-->
       <tr>
         <td width="9" height="395">&nbsp;</td>
         <td width="158" valign="top">
          

<table width="100%" border="0" cellpadding="0" cellspacing="0">
       <!--DWLayoutTable-->
       <tr>
         <td width="157" height="285" valign="top"><table width="157" border="0" cellpadding="0" cellspacing="0" background="menu.gif">
             <!--DWLayoutTable-->
             <tr>
               <td width="156" height="24">&nbsp;</td>
               <td width="1"></td>
             </tr>
             <tr align="center" valign="middle">
               <td height="22" colspan="2"><a href="http://www.correthos...=Fetiches"><img src="pixel.gif" alt="Fetiches" width="1" height="1" border="0"></a></td>
             </tr>
             <tr align="center" valign="middle">
               <td height="20"><a href="http://www.correthos...oria=Gays"><img src="pixel.gif" alt="Gays" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
               <td height="19"><a href="http://www.correthos...rosexuais"><img src="pixel.gif" alt="Heterosexuais" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
               <td height="25"><a href="http://www.correthos...=Incestos"><img src="pixel.gif" alt="Incestos" width="8" height="8" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
               <td height="18"><a href="http://www.correthos... src="pixel.gif" alt="L&eacute;sbicas" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
               <td height="21"><a href="http://www.correthos...ia=Orgias"><img src="pixel.gif" alt="Orgias" width="8" height="8" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
               <td height="21"><a href="http://www.correthos...asoquismo"><img src="pixel.gif" alt="Sadomasoquismo" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
              
         <td height="21"><a href="/maislidos/"><img src="pixel.gif" alt="Os contos mais lidos" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
              
         <td height="21"><a href="/maisvotados/"><img src="pixel.gif" alt="Os contos mais lidos" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
              
         <td height="22"><a href="/cadastro/"><img src="pixel.gif" alt="Cadastre-se &eacute; gr&aacute;tis!" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
              
         <td height="24"><a href="/cadastro/cadastraconto.php"><img src="pixel.gif" alt="Envie seu conto!" width="1" height="1" border="0"></a></td>
               <td></td>
             </tr>
             <tr align="center" valign="middle">
              
         <td height="26" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
               <td></td>
             </tr>
           </table></td>
       </tr>
       <tr>
         <td height="110"></td>
       </tr>
     </table>
 
  <img src="http://uv.terra.com....r/UV?c=virgula" width="0" height="0" alt="" border="0">          </td>
       </tr>
     </table></td>
   <td width="81" height="189">&nbsp;</td>
   <td width="501" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
       <!--DWLayoutTable-->
       <tr>
         <td width="439" height="189" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
             <!--DWLayoutTable-->
             <tr>
<?
while($dados=mysql_fetch_array($sql)){
?>
               <td width="439" height="24" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="categoria.gif">
                   <!--DWLayoutTable-->
                   <tr>
   
                     <td width="295" height="24">&nbsp;</td>
                     <td width="131" align="center" valign="middle" class="TituloUltimos"><a href="listacontos.php?categoria="><? "$dados[categoria]"; ?></a></td>
                     <td width="13">&nbsp;</td>
                   </tr>
                 </table></td>
             </tr>
             <tr>
               <td height="56" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                   <!--DWLayoutTable-->
                   <tr>
                     <td width="450" height="56" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                         <!--DWLayoutTable-->
                         <tr>
                           <td width="450" height="56" align="center" valign="middle">
                              <font face=Arial size=2 color=ff0000><b>0&nbsp;</b></font>                               &nbsp;</td>
                         </tr>
                       </table></td>
                   </tr>
                 </table></td>
             </tr>
             <tr>
               <td height="59" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
                   <!--DWLayoutTable-->
                 
       <tr>
   
                     <td width="15" height="20" align="right" valign="middle"><img src="seta.gif" width="10" height="7"></td>
                     <td width="10">&nbsp;</td>
                     <td width="414" valign="middle" class="TituloDentro"><a href="http://www.correthos...hp?categoria=<? echo "$dados[categoria]"; ?>&conto=<? echo "$dados[id]"; ?>"><span class="UltimosData"> (<? echo "$dados[data]"; ?>) </span> <? echo "$dados[titulo]"; ?></a><span class="TextoPeq"> (Autor: <? echo "$dados[autor]"; ?>) </span></td>
                   </tr>
         <tr bgcolor="#FFCCFF">
                     <td height="1" colspan="3" valign="top" background="pontos.gif"><img src="pixel.gif" width="1" height="1"></td>
                   </tr>                    <tr>
                     <td height="0">&nbsp;</td>
                     <td>&nbsp;</td>
                     <td></td>
                   </tr>
                 </table></td>
             </tr>
             <tr>
               <td height="69" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                   <!--DWLayoutTable-->
                   <tr>
                     <td width="450" height="53" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                         <!--DWLayoutTable-->
                         <tr>
                           <td width="450" height="53" align="center" valign="middle">
                              <font face=Arial size=2 color=ff0000><b>0&nbsp; </b></font></td>
                         </tr>
                       </table></td>
                   </tr>
                   <tr>
                     <td height="16"></td>
                   </tr>
                 </table></td>
             </tr>
           </table></td>
         <td width="62">&nbsp;</td>
       </tr>
     </table></td>
   <td width="1">&nbsp;</td>
</tr>
<tr>
   <td height="1">&nbsp;</td>
   <td>&nbsp;</td>
   <td>&nbsp;</td>
</tr>
<tr>
   <td height="1"></td>
   <td></td>
   <td></td>
   <td></td>
</tr>
</table>
<?}?>

<table width="770" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF99CC">
<!--DWLayoutTable-->
<tr>
   <td width="770" height="31" align="center" valign="middle"><font color="#9A4E9A" size="1" face="Arial, Helvetica, sans-serif">APIMENTADO.COM
     2003 &copy; Todos os direitos reservados.</font></td>
</tr>
</table></body>
</html>


Olha a linha que esta em negrito coloca na parte que acaba a parte dos contos ;)

Edição feita por: thiagorsl, 03/04/2004, 16:34.


#39 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 16:07

heeheh :P mas nao deu certo ainda velho.. copiei e colei o codigo que vc me passo e olha o resultado.. : http://www.correthos...?categoria=Gays
"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."

#40 thiagorsl

thiagorsl
  • Visitantes

Posted 03/04/2004, 16:36

Olhe a linha que coloquei no post acima vc a colocou no local correto onde fica o ninal de cada conto ??

Ela é que vai fazer um diferença olha la em cima esta em vermelho e veja se não é isso ;)

#41 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 18:19

como assim cara? nao entendi..poderia explicar melhor?
:wacko:
"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."

#42 thiagorsl

thiagorsl
  • Visitantes

Posted 03/04/2004, 18:30

Tem os codigo que aparecem na tela com o conto certo ???

Tipo assim

<td><td><? echo "$titulo" ?></td></tr>

Colopque while no inicio dsses codigos e coloque aquele negocio em vermelho no final desses codigo que determinam como o conto vai aparecer ;)

#43 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 18:41

isso é no listarcontos.php ou no lercontos.php? listar ne?
"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."

#44 thiagorsl

thiagorsl
  • Visitantes

Posted 03/04/2004, 18:45

Exato no Listar contos vc vai colocar isso ;)

#45 gmps

gmps

    Amsdã

  • Usuários
  • 969 posts
  • Sexo:Não informado

Posted 03/04/2004, 18:50

certo..
seria assim:

<tr> 
<td width="295" height="24">&nbsp;</td>
<td width="131" align="center" valign="middle" class="TituloUltimos"><a href="listacontos.php?categoria="><? while($dados=mysql_fetch_array($sql)){ ?><? "$dados[categoria]"; ?> <?}?></a></td>
<td width="13">&nbsp;</td>
</tr>

"Se você não puder ajudar, atrapalhe; afinal, o importante é participar..."




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq