eu não sei que nome vc deu a funão ai mas onde o Microbyte colocou bbcode vc coloca o nome da sua função
Té mais
Posted 21/07/2006, 14:56
Posted 21/07/2006, 14:58
Posted 21/07/2006, 15:39
<?php
include("funcoes.php");
include("conexao.php");
$TotalPG = 3;
$Tabela = "noticias";
$Pg = $_GET['Pagina'];
if (empty($Pagina)) { $Pagina = 0; }
$Busca = mssql_query('SELECT * FROM '.$Tabela.' ORDER BY id DESC');
$pgs = ceil(mssql_num_rows($Busca) / $TotalPG);
mssql_data_seek($Busca , ($Pagina * $TotalPG));
$i = 0;
while(($Linha = mssql_fetch_row($Busca)) && $i < $TotalPG){
bbcode($var,$area);
echo"<table width='400' border='0' cellspacing='0' cellpadding='0'>
<tr bgcolor='#CCCCCC'>
<td colspan='2'>$Linha[2]</td>
</tr>
<tr>
<td width='197' bgcolor='#66FFFF'>$Linha[4]</td>
<td width='203' bgcolor='#00FFFF'>Escrito por: $Linha[3]</td>
</tr>
<tr bgcolor='#FFFFCC'>
<td colspan='2'>$Linha[1]</td>
</tr>
</table><BR><BR>";
$i++;
}
if ($Pg > 0) {
$Menos = $Pagina - 1;
echo "<a href='?Pagina=".$Menos."'><= Voltar</a><b> | </b>";
}
if ($Pagina < ($pgs-1)) {
$Mais = $Pagina + 1;
echo "<a href='?Pagina=".$Mais."'>Próximo =></a>";
}
?>Posted 21/07/2006, 16:07
<td colspan='2'>$Linha[1]</td>
<td colspan='2'>".bbcode($Linha[1])."</td>
Edição feita por: Goku Jr, 21/07/2006, 16:07.
Posted 21/07/2006, 16:25
Posted 21/07/2006, 19:01
Posted 21/07/2006, 19:11
Posted 21/07/2006, 20:31
Edição feita por: Bobrinha, 21/07/2006, 20:36.
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)