Ir para conteúdo
Fórum Script Brasil
  • 0

Duvida Com Php+html


host designer

Pergunta


Eu to mexendo num layout aqui e to apanhando tem uns 3 dias eu quero colocar uma consulta dentro de uma pagina em html e não funciona de geito nenhum so da erro...

a pagina(tabela) aparece quebrada, já tentei de tudo já to pra desistir aguem pode me dar uma mao ae

to usando isso...

<div align="center">

<table width="489" border="0" align="center" cellpadding="0" cellspacing="0">

  <!-- fwtable fwsrc="corpo.png" fwbase="corpo.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->

  <tr>

    <td><img src="img/spacer.gif" width="12" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="53" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="57" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="70" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="61" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="51" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="14" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="11" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="6" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="69" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="14" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="19" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="40" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="12" height="1" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="1" height="1" border="0" alt=""></td>

  </tr>

  <tr>

    <td colspan="14"><img name="corpo_r16_c1" src="img/corpo_r16_c1.jpg" width="489" height="2" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="1" height="2" border="0" alt=""></td>

  </tr>

  <tr>

    <td colspan="2" rowspan="3" bgcolor="#EBECE7" valign="top"><img name="final_logo" src="img/final_logo.jpg" width="65" height="67" border="0" alt=""></td>

    <td colspan="12"><img name="final_topo" src="img/final_topo.jpg" width="424" height="25" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="1" height="25" border="0" alt=""></td>

  </tr>

  <tr>

    <td colspan="2"><img name="final_quadro_torpedos" src="img/final_quadro_torpedos.jpg" width="127" height="23" border="0" alt=""></td>

    <td colspan="2"><a href="?acao=torpedo_ins"><img name="final_enviar_torpedos" src="img/final_enviar_torpedos.jpg" width="112" height="23" border="0" alt=""></a></td>

    <td colspan="5"><img name="final_ler_mais_torpedos" src="img/final_ler_mais_torpedos.jpg" width="114" height="23" border="0" alt=""></td>

    <td colspan="2"><img name="final_fundo" src="img/final_fundo.jpg" width="59" height="23" border="0" alt=""></td>

    <td rowspan="6" background="img/lateral_final_direit.jpg">&nbsp;</td>

    <td><img src="img/spacer.gif" width="1" height="23" border="0" alt=""></td>

  </tr>

  <tr>

    <td colspan="11" rowspan="5" bgcolor="#EBECE7" valign="top"> <strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">MURAL</font></strong>

      <hr style="border-top: 1px dotted #C0C0C0" align="left" size="1" width="100%">

     

<?php
$limit = 8;

$query_count = "select * from torpedo Order By id Desc";
$result_count = mysql_query($query_count) or print(mysql_error());
$totalrows = mysql_num_rows($result_count);
if(empty($totalrows)){
echo "<center><br><br><br>Nenhum registro encontrado até o momento!";
}else{
if(empty($_GET[/page][page])) 
$_GET[/page][page] = 1; 
$limitvalue = $_GET[/page][page] * $limit - ($limit);
$query = "select * from torpedo Order By id Desc LIMIT $limitvalue, $limit";
$result = mysql_query($query) or die("Error: " . mysql_error());
$count_result = mysql_num_rows($result);

$numofpages = ceil($totalrows / $limit);
$from=$limit*$_GET[/page][page]-$limit+1;
$to=$from + $count_result-1;


echo "
Um total de $totalrows mensagens.<br>&nbsp;
<table align='center' width='98%' border='0' cellspacing='0' cellpadding='2' style='border: 1 solid #808080' height='20' bgcolor='#FEFBE7'>
<tr>
<td width='40%' align='left'> Mostrando de $from a $to</td>
<td width='60%' align='right'>";

if($_GET[/page][page] != 1){
$pageprev = $_GET[/page][page] - 1;
echo("<a href='$PHP_SELF?acao=torpedo&acao2=listar&page=$pageprev'><< Anterior</a>&nbsp;&nbsp;&nbsp;");
}else{
echo "<< Anterior&nbsp;&nbsp;&nbsp;";
}

echo "<script>function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+\".location='\"+selObj.options[selObj.selectedIndex].value+\"'\");
if (restore) selObj.selectedIndex=0;}
</SCRIPT>
<SELECT class=f onchange=\"MM_jumpMenu('this',this,1)\" name=menu1 size=1 target=principal>";
echo "<OPTION value='$PHP_SELF?acao=torpedo&acao2=listar&page=$i'>Página $_GET[/page][page]</OPTION>";
for($i = 1; $i <= $numofpages; $i++){
if($numofpages>1){

echo "<OPTION value='$PHP_SELF?acao=torpedo&acao2=listar&page=$i'>Página $i</OPTION>";

}//fim do primeiro if

}//fim do for
echo "</SELECT></Form>";

if(($totalrows - ($limit * $_GET[/page][page])) > 0){
$pagenext = $_GET[/page][page] + 1;
echo("<a href=\"$PHP_SELF?acao=torpedo&acao2=listar&page=$pagenext\">&nbsp;&nbsp;&nbsp;Próxima >></a>");
}else{
echo "&nbsp;&nbsp;&nbsp;Próxima >>";
}
echo"</td></tr></table><br><br><table border=0 cellpadding=8 cellspacing=0 width=100%>
</tr><td>";


while($r = mysql_fetch_array($result)){

echo "
<tr>
<td width=79><center><img src=img/carinha/$r[pers].gif class=bor3></td>
<td>
<div align=center>
<table border=0 cellpadding=4 cellspacing=0 width=90%>
<tr>
<td bgcolor=#F1F1F1 class=bor2><b>De:</b> <a href=mailto:$r[mail]>$r[de]</a> <b>Para:</b> $r[para]</td>
</tr>
<tr>
<td>&nbsp;$r[men]</td>
</tr>
<tr>
<td bgcolor=#F1F1F1 class=bor2><b>Em:</b> $r[dat]</td>
</tr>
</table>

";
}
mysql_free_result($result);
//echo"";
}
?>

    </td>

    <td><img src="img/spacer.gif" width="1" height="19" border="0" alt=""></td>

  </tr>

  <tr>

    <td rowspan="4" background="img/final_descartavel.jpg">&nbsp;</td>

    <td rowspan="4" bgcolor="#EBECE7" valign="top">&nbsp;</td>

    <td><img src="img/spacer.gif" width="1" height="9" border="0" alt=""></td>

  </tr>

  <tr>

    <td><img src="img/spacer.gif" width="1" height="108" border="0" alt=""></td>

  </tr>

  <tr>

    <td><img src="img/spacer.gif" width="1" height="3" border="0" alt=""></td>

  </tr>

  <tr>

    <td><img src="img/spacer.gif" width="1" height="5" border="0" alt=""></td>

  </tr>

  <tr>

    <td colspan="14"><img name="mural_pe" src="img/mural_pe.jpg" width="489" height="32" border="0" alt=""></td>

    <td><img src="img/spacer.gif" width="1" height="32" border="0" alt=""></td>

  </tr>

</table>

<tr>

  <td width=79><center></td>

  <td>&nbsp;

se alguém quiser ver o erro a pagina e essa

Falopa!

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

cara ve se n é isso, porque em todos os outros width's hehe tu usaste as medidas em porcentagem e nessa linha tu colocou o numero mesmo

<td width=79><center><img src=img/carinha/$r[pers].gif class=bor3></td>

e velho perdi vários neorônios loiros no teu código ahhuauhiahiua q loucuuuuuuuuuuuuuuuuuura meu velho.. tenta seaprar php, css, e html... fica melhor de trabalhar e de visualizar, concertar e td masi... wink.gif

tenta ae vamo v

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,4k
    • Posts
      652,2k
×
×
  • Criar Novo...