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

Tabelas Todas Zuadas Pq ?


mestre fyoda

8 respostass a esta questão

Posts Recomendados

  • 0

vou colocar o meu codigo , aonde esta em vermelho é a parte do html q esta dentro do while da linguagem do php , então as tabelas q estao erradas elas deveriam estar certas .

<?

ob_start();

?>

<?

session_start();

?>

<html>

<head>

<link href="../fundo/estilo.css" rel="stylesheet" type="text/css">

</head>

<body>

<table cellpadding="0" cellspacing="0" class="preto10" align="center">

<tr>  

  <td width="150" bgcolor="#FFFF99" style="border-right:1px solid #000000; border-left:1px solid #000000; border-top:1px solid #000000; border-bottom:1px solid #000000;">

    <input type="checkbox" name="sel" title="Selecione ou Desmarque todas as mensagens">

           Remetente

  </td>

  <td width="300" style="border-right:1px solid #000000; border-top:1px solid #000000; border-bottom:1px solid #000000;" bgcolor="#FFFF99">

    Assunto

  </td>

  <td width="150" style="border-right:1px solid #000000; border-top:1px solid #000000; border-bottom:1px solid #000000;" bgcolor="#FFFF99">

    Data

  </td>

</tr>

<?

include("config.php");

$id_para = $_SESSION["id"];

$resul = mysql_query("SELECT * FROM msg_entrada where id_para = '$id_para' ");

    while($v_dados = mysql_fetch_array($resul)) {

    $de = $v_dados["de"];  

    $para = $v_dados["para"];  

    $msg = $v_dados["msg"];  

    $data = $v_dados["data"];  

    $hora = $v_dados["hora"];  

    $assunto = $v_dados["assunto"];

    $id_msg = $v_dados["id_msgentrada"];  

?>

<tr>

  <td width="150"    style="border-right:1px solid #000000; border-left:1px solid #000000; border-bottom:1px solid #000000;" bgcolor="#FFFF99">

    <input type="checkbox" name="sel" title="Selecione ou Desmarque todas as mensagens">

    <? echo "$de"; ?></td>

  <td width="300"  style="border-right:1px solid #000000;   border-bottom:1px solid #000000;"  bgcolor="#FFFF99">

           <a href="msg.php?acao=abrir&id=<? echo $id_msg; ?>"><? echo "$assunto"; ?>Oi</a></td>

   <td width="150"   style="border-right:1px solid #000000; border-bottom:1px solid #000000;" bgcolor="#FFFF99">

            <? echo "$data"; ?></td>

</tr>

</table>

<br>

<?

}

?>

</body>

</html>

<?

ob_end_flush();

?>

Link para o comentário
Compartilhar em outros sites

  • 0

O que tem na classe preto10?

A Tag </table> está dentro do loop, tente mudar ela de lugar.

Tente um código mais limpo.

<?

...

?>

<html>

<head>

<style type="text/css">

table {

margin: 0;

padding:0;

border:none;

border-collapse:collapse;

}

td {

border:1px solid #000;

background:#ff9;

}

td.T150 { width:150px;}

td.T300 { width:300px;}

</style>

</head>

<body>

<table>

<tr> 

  <td class="T150">

    <input type="checkbox" name="sel" title="Selecione ou Desmarque todas as mensagens">

    Remetente

  </td>

  <td class="T300">

    Assunto

  </td>

  <td class="T150">

    Data

  </td>

</tr>

<?

....

?>

<tr>

  <td><!-- A largura da do coluna já está definida -->

    <input type="checkbox" name="sel" title="Selecione ou Desmarque todas as mensagens">

    <?...?>

  </td>

  <td><a href="msg.php?acao=abrir&id=<? echo $id_msg; ?>"><?...?></a></td>

  <td><?...?></td>

</tr>

<?

...

?>

</table>

</body>

</html>

<?

...

?>

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.


  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...