Sistema Do Tipo Www.apimentado.com.br
#31 thiagorsl
Posted 03/04/2004, 15:16
#32
Posted 03/04/2004, 15:27
olha:
http://www.correthos...ia=Gays&conto=5
http://www.correthos...ia=Gays&conto=7
http://www.correthos...ia=Gays&conto=2
#33 thiagorsl
Posted 03/04/2004, 15:35
}
pronto acho que isso deve resolver
#34
Posted 03/04/2004, 15:44
agora nao aparece nenhum conto
<?
while($dados=mysql_fetch_array($sql)){
}
?>
esse codigo que pega a tabela toda que vai aparecer os dados
#35 thiagorsl
Posted 03/04/2004, 15:47
#36
Posted 03/04/2004, 15:55
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"> </td> <td width="290" align="center" valign="middle"><a href="/home.php"><img src="cima.gif" alt="Pá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"> </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á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"> </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"> </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é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 é grá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--> </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"> </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"> </td> <td width="131" align="center" valign="middle" class="TituloUltimos"><a href="listacontos.php?categoria="><? "$dados[categoria]"; ?></a></td> <td width="13"> </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 </b></font> </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"> </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"> </td> <td> </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 </b></font></td> </tr> </table></td> </tr> <tr> <td height="16"></td> </tr> </table></td> </tr> </table></td> <td width="62"> </td> </tr> </table></td> <td width="1"> </td> </tr> <tr> <td height="1"> </td> <td> </td> <td> </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 © Todos os direitos reservados.</font></td> </tr> </table></body> </html>
#37
Posted 03/04/2004, 15:58
#38 thiagorsl
Posted 03/04/2004, 16:00
<?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"> </td>
<td width="290" align="center" valign="middle"><a href="/home.php"><img src="cima.gif" alt="Pá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"> </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á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"> </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"> </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é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 é grá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--> </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"> </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"> </td>
<td width="131" align="center" valign="middle" class="TituloUltimos"><a href="listacontos.php?categoria="><? "$dados[categoria]"; ?></a></td>
<td width="13"> </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 </b></font> </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"> </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"> </td>
<td> </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 </b></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="16"></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="62"> </td>
</tr>
</table></td>
<td width="1"> </td>
</tr>
<tr>
<td height="1"> </td>
<td> </td>
<td> </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 © 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
Posted 03/04/2004, 16:07
#40 thiagorsl
Posted 03/04/2004, 16:36
Ela é que vai fazer um diferença olha la em cima esta em vermelho e veja se não é isso
#41
Posted 03/04/2004, 18:19
#42 thiagorsl
Posted 03/04/2004, 18:30
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
Posted 03/04/2004, 18:41
#44 thiagorsl
Posted 03/04/2004, 18:45
#45
Posted 03/04/2004, 18:50
seria assim:
<tr> <td width="295" height="24"> </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"> </td> </tr>
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)