Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

jonata

mysql!

Recommended Posts

bem pessoal...

 

eu tenho uma página php que exibe todos os dados de uma determinada tabela mysql,

 

eu organizei os dados mostrados dentro de uma tabela pra fcr mais organizado.

 

eu coloquei cada registro dentro de um form pra qando eu quiser exibir notra página eu clico sobre o submit e ele exibe na outra página só o registro queuero ver!

 

<table width="93%" border="1" bordercolor="#F0F0F0">            <tr>               <td width="12%" rowspan="5" align="center" valign="top"><strong><font color="#000000" size="2">                 </font></strong></td>              <td width="13%" height="22" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Nome                 do aluno:</font></strong></font></td>              <td width="32%" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$nome"; ?></font><font size="2">                 </font><font color="#000000" size="2">                 <input name='nome' type='hidden' id='nome' value='<?php echo "$nome"; ?>'>                </font><font size="2"> </font><font size="2"> </font></strong></td>              <td width="11%" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">d/Nascimento:</font></strong></font></td>              <td width="32%" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$datanasc"; ?></font><font color="#000000" size="2">                 <input name='datanasc' type='hidden' id='datanasc' value='<?php echo "$datanasc"; ?>'>                </font> <font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>Sexo:</strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$sexo"; ?></font><font color="#000000" size="2">                 <input name='sexo' type='hidden' id='sexo' value='<?php echo "$sexo"; ?>'>                </font><font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Ano                 letivo: </font></strong></font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$ano_letivo"; ?></font><font color="#000000" size="2">                 <input name='ano_letivo' type='hidden' id='ano_letivo' value='<?php echo "$ano_letivo"; ?>'>                </font> <font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Endereço:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$end"; ?>                 <input name='end' type='hidden' id='end' value='<?php echo "$end";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Bairro:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$bairro"; ?></font><font color="#000000" size="2">                 <input name='bairro' type='hidden' id='bairro' value='<?php echo "$bairro";?>'>                </font><font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>Nº:</strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$n"; ?>                 <input name='n' type='hidden' id='n' value='<?php echo "$n";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Cep:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$cep"; ?></font><font color="#000000" size="2">                 <input name='cep' type='hidden' id='cep' value='<?php echo "$cep";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>            </tr>            <tr>               <td height="23" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Cidade:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$cidade"; ?>                 <input name='cidade' type='hidden' id='cidade' value='<?php echo "$cidade";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Estado:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$estado"; ?></font><font color="#000000" size="2">                 <input name='estado' type='hidden' id='estado' value='<?php echo "$estado";?>'>                </font><font size="2"> </font></strong></td>            </tr>            <tr>               <td rowspan="3" align="right" valign="top" bordercolor="#F0F0F0" bgcolor="#F0F0F0">                 <div align="center"></div>                <div align="center">                   <input name="imageField" type="image" src="file:///C|/webmaster/www.webmasteral.com.br/images/bots/excluir.jpg" width="71" height="18" border="0">                  <img src="file:///C|/webmaster/www.webmasteral.com.br/images/bots/bot_print.jpg" width="71" height="18"></div>              </td>              <td height="23" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Data                 matricula:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$datamatric"; ?></font><font color="#000000" size="2">                 <input name='datamatric' type='hidden' id='datamatric' value='<?php echo "$datamatric";?>'>                </font> <font size="2"> </font></strong></td>              <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Telefone:</font></strong></font><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"> </font></td>              <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo"$tel" ; ?></font><font color="#000000" size="2">                 <input name='tel' type='hidden' id='tel' value='<?php echo"$tel" ;?>'>                </font><font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Responsável:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$respon" ; ?>                 <input name='respon' type='hidden' id='respon' value='<?php echo "$respon" ;?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"><strong>RG:</strong></font></strong></font></td>              <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#FFFFCC"><font color="#000000" size="2" face="Times New Roman, Times, serif"><?php echo "$rg";   ?></font></font>                 <input name='rg' type='hidden' id='rg' value='<?php echo "$rg";  ?>'>                <font color="#FFFFCC"><font size="2"> </font></font></strong></td>            </tr>            <tr>               <td height="23" bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>E-mail:</strong></font><font color="#FFFFCC"><strong></strong></font><font color="#FFFFCC"><strong></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$email" ; ?></font><font color="#000000" size="2">                 <input name='email' type='hidden' id='email' value='<?php echo "$email" ;?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">CPF:</font></strong></font><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"></font></strong></font></td>              <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$cpf" ; }?></font><font color="#000000" size="2">                 <input name='cpf' type='hidden' id='cpf' value='<?php echo "$cpf" ;?>'>  <?php mysql_free_result($rs); mysql_close($connect);?>                </font> </strong></td>            </tr>          </table>

 

mas quando eu clico no botão submit ele manda pra outra página sempre o ultimo registro e não o que eu selecionei! ( tabela tem 10 egistros!)

 

tenho um problema similar com outra tabela de senhas em qe a pessoa coloca o fom. loguin e senha pra ver se exise no bd, pois se não corresponder loguin e senha não são exibidas determidadas informções. mas, e eu colocar mais de uma senha na tabela, ele só aceita a ultima também.

se pudrem me respondam o que é necessário para resolver ese problema!

Compartilhar este post


Link para o post
Compartilhar em outros sites

não entendi!mudando valores?não entendi!os registros são diferentes!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Faz o seguinte.. posta o cod PHP tmb... pq assim nao da pra sacar como você fez... os valores sao diferentes sim.. mas não sei como você esta fazendo...

Compartilhar este post


Link para o post
Compartilhar em outros sites

Por favor, me esclareça só uma coisa: Os dados estão sendo recuperados do Banco de Dados para um único form, não é? Nesse caso, no outro arquivo que você irá mostrar os resultados individualmente, você faz uma nova consulta SQL ou aproveita os dados que estão nos campos do form?Não entendi se:

sim estão!eu fiz tb a consulta com SELECT * FROM tabela...

como você mencionou, está se referindo ao arquivo do form, ou ao arquivo que mostra o resultado individualmente...

Compartilhar este post


Link para o post
Compartilhar em outros sites

pessoal!

 

 

todosreg.>>>>>>>>excluir.php

 

é o seguinte!

 

vou tentar ser mais específico!

 

se vocês verem os códigos acima vão ver qu u coloquei os regs. dentro de um form. que contem campos ocultos <input type='hidden' name='nome do campo' value='<?php echo "$campo" ?>' >

 

 

esses <inputs> pegam os dado que u quero e mandam pra outra página via fom.

 

 

 

include("inc/connect.php");

 

$sql= "SELECT * FROM matric";

 

 

$rs= mysql_query($sql, $connect)or die ("problemaquery".mysql_error());

 

$count_reg=mysql_num_rows($rs);

 

while($linha= mysql_fetch_array($rs)){

 

$nome=$linha['nome'];

$ano_letivo=$linha['ano_letivo'];

$sexo=$linha['sexo'];

$datanasc=$linha['datanasc'];

$end=$linha['end'];

$n=$linha['n'];

$bairro=$linha['bairro'];

$cidade=$linha['cidade'];

$cep=$linha['cep'];

$estado=$linha['estado'];

$datamatric=$linha['datamatric'];

$respon=$linha['respon'];

$cpf=$linha['cpf'];

$rg=$linha['rg'];

$tel=$linha['tel'];

$email=$linha['email'];

$validade=$linha['validade'];

 

 

outra pega apenas os dados do form. e dai eu vpou excluir o registro da tabela!

 

espro que esteja claro e fãcil de compreender!

Compartilhar este post


Link para o post
Compartilhar em outros sites

isso tudo: $nome=$linha['nome'];$ano_letivo=$linha['ano_letivo'];$sexo=$linha['sexo'];$datanasc=$linha['datanasc'];$end=$linha['end'];$n=$linha['n'];$bairro=$linha['bairro'];$cidade=$linha['cidade'];$cep=$linha['cep'];$estado=$linha['estado'];$datamatric=$linha['datamatric'];$respon=$linha['respon'];$cpf=$linha['cpf'];$rg=$linha['rg'];$tel=$linha['tel'];$email=$linha['email'];$validade=$linha['validade'];e mais o html estao dentro do while neh????? pq se for soh as variaveis vai mostrar semrpe o ultimo mesmo...

Compartilhar este post


Link para o post
Compartilhar em outros sites

quando faço a consult todos regisros são exibidos sem problema!

<? $sql= "SELECT * FROM matric";$rs= mysql_query($sql, $connect)or die ("problemaquery".mysql_error());$count_reg=mysql_num_rows($rs);while($linha= mysql_fetch_array($rs)){# ===-- Declaração das variaveis...$nome = $linha['nome'];$ano_letivo = $linha['ano_letivo'];$sexo = $linha['sexo'];$datanasc = $linha['datanasc'];$end = $linha['end'];$n = $linha['n'];$bairro = $linha['bairro'];$cidade = $linha['cidade'];$cep = $linha['cep'];$estado = $linha['estado'];$datamatric = $linha['datamatric'];$respon = $linha['respon'];$cpf = $linha['cpf'];$rg = $linha['rg'];$tel = $linha['tel'];$email = $linha['email'];$validade = $linha['validade'];?><table width="93%" border="1" bordercolor="#F0F0F0">            <tr>               <td width="12%" rowspan="5" align="center" valign="top"><strong><font color="#000000" size="2">                 </font></strong></td>              <td width="13%" height="22" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Nome                 do aluno:</font></strong></font></td>              <td width="32%" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$nome"; ?></font><font size="2">                 </font><font color="#000000" size="2">                 <input name='nome' type='hidden' id='nome' value='<?php echo "$nome"; ?>'>                </font><font size="2"> </font><font size="2"> </font></strong></td>              <td width="11%" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">d/Nascimento:</font></strong></font></td>              <td width="32%" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$datanasc"; ?></font><font color="#000000" size="2">                 <input name='datanasc' type='hidden' id='datanasc' value='<?php echo "$datanasc"; ?>'>                </font> <font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>Sexo:</strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$sexo"; ?></font><font color="#000000" size="2">                 <input name='sexo' type='hidden' id='sexo' value='<?php echo "$sexo"; ?>'>                </font><font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Ano                 letivo: </font></strong></font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$ano_letivo"; ?></font><font color="#000000" size="2">                 <input name='ano_letivo' type='hidden' id='ano_letivo' value='<?php echo "$ano_letivo"; ?>'>                </font> <font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Endereço:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$end"; ?>                 <input name='end' type='hidden' id='end' value='<?php echo "$end";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Bairro:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$bairro"; ?></font><font color="#000000" size="2">                 <input name='bairro' type='hidden' id='bairro' value='<?php echo "$bairro";?>'>                </font><font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>Nº:</strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$n"; ?>                 <input name='n' type='hidden' id='n' value='<?php echo "$n";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Cep:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$cep"; ?></font><font color="#000000" size="2">                 <input name='cep' type='hidden' id='cep' value='<?php echo "$cep";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>            </tr>            <tr>               <td height="23" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Cidade:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$cidade"; ?>                 <input name='cidade' type='hidden' id='cidade' value='<?php echo "$cidade";?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Estado:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$estado"; ?></font><font color="#000000" size="2">                 <input name='estado' type='hidden' id='estado' value='<?php echo "$estado";?>'>                </font><font size="2"> </font></strong></td>            </tr>            <tr>               <td rowspan="3" align="right" valign="top" bordercolor="#F0F0F0" bgcolor="#F0F0F0">                 <div align="center"></div>                <div align="center">                   <input name="imageField" type="image" src="file:///C|/webmaster/www.webmasteral.com.br/images/bots/excluir.jpg" width="71" height="18" border="0">                  <img src="file:///C|/webmaster/www.webmasteral.com.br/images/bots/bot_print.jpg" width="71" height="18"></div>              </td>              <td height="23" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Data                 matricula:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$datamatric"; ?></font><font color="#000000" size="2">                 <input name='datamatric' type='hidden' id='datamatric' value='<?php echo "$datamatric";?>'>                </font> <font size="2"> </font></strong></td>              <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Telefone:</font></strong></font><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"> </font></td>              <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo"$tel" ; ?></font><font color="#000000" size="2">                 <input name='tel' type='hidden' id='tel' value='<?php echo"$tel" ;?>'>                </font><font size="2"> </font></strong></td>            </tr>            <tr>               <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Responsável:</font></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$respon" ; ?>                 <input name='respon' type='hidden' id='respon' value='<?php echo "$respon" ;?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"><strong>RG:</strong></font></strong></font></td>              <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#FFFFCC"><font color="#000000" size="2" face="Times New Roman, Times, serif"><?php echo "$rg";   ?></font></font>                 <input name='rg' type='hidden' id='rg' value='<?php echo "$rg";  ?>'>                <font color="#FFFFCC"><font size="2"> </font></font></strong></td>            </tr>            <tr>               <td height="23" bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>E-mail:</strong></font><font color="#FFFFCC"><strong></strong></font><font color="#FFFFCC"><strong></strong></font></td>              <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$email" ; ?></font><font color="#000000" size="2">                 <input name='email' type='hidden' id='email' value='<?php echo "$email" ;?>'>                </font><font size="2"> </font> </font> <font size="2"> </font></strong></td>              <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">CPF:</font></strong></font><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"></font></strong></font></td>              <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$cpf" ; }?></font><font color="#000000" size="2">                 <input name='cpf' type='hidden' id='cpf' value='<?php echo "$cpf" ;?>'>  <?php mysql_free_result($rs); mysql_close($connect);?>                </font> </strong></td>            </tr>          </table>

Compartilhar este post


Link para o post
Compartilhar em outros sites

kra.. o importante é o codigo... cola seu codigo aqui meu....vai ter q ser algo assim:<? $sql= "SELECT * FROM matric";$rs= mysql_query($sql, $connect)or die ("problemaquery".mysql_error());$count_reg=mysql_num_rows($rs);while($linha= mysql_fetch_array($rs)){ # ===-- Declaração das variaveis... $nome = $linha['nome']; $ano_letivo = $linha['ano_letivo']; $sexo = $linha['sexo']; $datanasc = $linha['datanasc']; $end = $linha['end']; $n = $linha['n']; $bairro = $linha['bairro']; $cidade = $linha['cidade']; $cep = $linha['cep']; $estado = $linha['estado']; $datamatric = $linha['datamatric']; $respon = $linha['respon']; $cpf = $linha['cpf']; $rg = $linha['rg']; $tel = $linha['tel']; $email = $linha['email']; $validade = $linha['validade'];?><form name="form1" id="form1" action="exclui.php"> <table width="93%" border="1" bordercolor="#F0F0F0"> <tr> <td width="12%" rowspan="5" align="center" valign="top"><strong><font color="#000000" size="2"> </font></strong></td> <td width="13%" height="22" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Nome do aluno:</font></strong></font></td> <td width="32%" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$nome"; ?></font><font size="2"> </font><font color="#000000" size="2"> <input name='nome' type='hidden' id='nome' value='<?php echo "$nome"; ?>'> </font><font size="2"> </font><font size="2"> </font></strong></td> <td width="11%" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">d/Nascimento:</font></strong></font></td> <td width="32%" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$datanasc"; ?></font><font color="#000000" size="2"> <input name='datanasc' type='hidden' id='datanasc' value='<?php echo "$datanasc"; ?>'> </font> <font size="2"> </font></strong></td> </tr> <tr> <td bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>Sexo:</strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$sexo"; ?></font><font color="#000000" size="2"> <input name='sexo' type='hidden' id='sexo' value='<?php echo "$sexo"; ?>'> </font><font size="2"> </font></strong></td> <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Ano letivo: </font></strong></font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$ano_letivo"; ?></font><font color="#000000" size="2"> <input name='ano_letivo' type='hidden' id='ano_letivo' value='<?php echo "$ano_letivo"; ?>'> </font> <font size="2"> </font></strong></td> </tr> <tr> <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Endereço:</font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$end"; ?> <input name='end' type='hidden' id='end' value='<?php echo "$end";?>'> </font><font size="2"> </font> </font> <font size="2"> </font></strong></td> <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Bairro:</font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$bairro"; ?></font><font color="#000000" size="2"> <input name='bairro' type='hidden' id='bairro' value='<?php echo "$bairro";?>'> </font><font size="2"> </font></strong></td> </tr> <tr> <td bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>Nº:</strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$n"; ?> <input name='n' type='hidden' id='n' value='<?php echo "$n";?>'> </font><font size="2"> </font> </font> <font size="2"> </font></strong></td> <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Cep:</font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$cep"; ?></font><font color="#000000" size="2"> <input name='cep' type='hidden' id='cep' value='<?php echo "$cep";?>'> </font><font size="2"> </font> </font> <font size="2"> </font></strong></td> </tr> <tr> <td height="23" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Cidade:</font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"> <?php echo "$cidade"; ?> <input name='cidade' type='hidden' id='cidade' value='<?php echo "$cidade";?>'> </font><font size="2"> </font> </font> <font size="2"> </font></strong></td> <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Estado:</font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$estado"; ?></font><font color="#000000" size="2"> <input name='estado' type='hidden' id='estado' value='<?php echo "$estado";?>'> </font><font size="2"> </font></strong></td> </tr> <tr> <td rowspan="3" align="right" valign="top" bordercolor="#F0F0F0" bgcolor="#F0F0F0"> <div align="center"></div> <div align="center"> <input name="imageField" type="image" src="file:///C|/webmaster/www.webmasteral.com.br/images/bots/excluir.jpg" width="71" height="18" border="0"> <img src="file:///C|/webmaster/www.webmasteral.com.br/images/bots/bot_print.jpg" width="71" height="18"></div> </td> <td height="23" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Data matricula:</font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$datamatric"; ?></font><font color="#000000" size="2"> <input name='datamatric' type='hidden' id='datamatric' value='<?php echo "$datamatric";?>'> </font> <font size="2"> </font></strong></td> <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Telefone:</font></strong></font><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"> </font></td> <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo"$tel" ; ?></font><font color="#000000" size="2"> <input name='tel' type='hidden' id='tel' value='<?php echo"$tel" ;?>'> </font><font size="2"> </font></strong></td> </tr> <tr> <td bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">Responsável:</font></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$respon" ; ?> <input name='respon' type='hidden' id='respon' value='<?php echo "$respon" ;?>'> </font><font size="2"> </font> </font> <font size="2"> </font></strong></td> <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"><strong>RG:</strong></font></strong></font></td> <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#FFFFCC"><font color="#000000" size="2" face="Times New Roman, Times, serif"><?php echo "$rg"; ?></font></font> <input name='rg' type='hidden' id='rg' value='<?php echo "$rg"; ?>'> <font color="#FFFFCC"><font size="2"> </font></font></strong></td> </tr> <tr> <td height="23" bgcolor="#999999"><font color="#FFFFFF" size="2"><strong>E-mail:</strong></font><font color="#FFFFCC"><strong></strong></font><font color="#FFFFCC"><strong></strong></font></td> <td bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$email" ; ?></font><font color="#000000" size="2"> <input name='email' type='hidden' id='email' value='<?php echo "$email" ;?>'> </font><font size="2"> </font> </font> <font size="2"> </font></strong></td> <td bordercolor="#CCCCCC" bgcolor="#999999"><font color="#FFFFCC"><strong><font color="#FFFFCC"><strong><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">CPF:</font></strong></font><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif"></font></strong></font></td> <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><strong><font color="#000000" size="2"><?php echo "$cpf" ; }?></font><font color="#000000" size="2"> <input name='cpf' type='hidden' id='cpf' value='<?php echo "$cpf" ;?>'> <?php mysql_free_result($rs); mysql_close($connect);?> </font> </strong></td> </tr> </table></form><? } // final do while?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

o código é esse!!!!ai....a outra página só pega os dados enviado por form.creio qu se derem uma olhada vão entender!! pois éo mais claro que posso explicar!

Compartilhar este post


Link para o post
Compartilhar em outros sites

TU nao entendeu ainda onde ta o erra... Preciso ver o codigo q gera a lista dos usuarios... aquelas tabelas uma abaixo da outra... eh isso q eu perciso ver...

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.