Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Galera...
To fazendo uma pesquisa recebendo uma variavel do meu formulario Pesquisa.html...
Mas meu arquivo onde está o _POST... a variavel telefone está ficando vazia...
A pesquisa retorna corretamente a quantidade de registros na tabela, o nome do cliente mas o campo telefone fica vazio.. alguém pode me ajudar...
CODE
<?php
include "conecta_mysql.inc";
$NOME = $_POST["NOME"];
$resultado = mysql_query ("Select strNome, strContato from tbl_cadastro where strNome LIKE '%$NOME%'");
$qtd = mysql_num_rows($resultado);
Echo "Total de Registros carregados: ".$qtd;
//echo "<p align =\"center\"> Numero $linhas </p>"; // "Nome:".$objeto->nome_usuario."<br>";
echo "<font face='Arial' size='2'><Table border='1'cellpaddding='5'cellspacing='1'><tr>";
// echo "<legend>Relatório Análitico referente a ".$Data_inicial." até ".$Data_final;
echo "<th width=\"15%\">";
echo "<font face='Arial' size='2'>Alterar</th>";
echo "<th width=\"15%\">";
echo "<font face='Arial' size='2'>NOME</th>";
echo "<th width=\"15%\">";
echo "<font face='Arial' size='2'>TELEFONE</th>";
while ($linha=mysql_fetCh_array($resultado))
$NOME_PESSOA=($linha["strNome"]);
$TELEFONE=($linha["strContato"]);
echo "<TR><th width=\"5%\">";
echo "</th>";
echo "<th width=\"15%\">";
echo "<font face='Arial' size='2'>$NOME_PESSOA</th>";
echo "<th width=\"15%\">";
echo "<font face='Arial' size='2'>$TELEFONE</th>";
echo "</table>";
mysql_error();
mysql_close($conexao);
?>
O código acima é do meu formulario que recebe o parametro da pesquisa...
Desde já agradeço....
Carregando comentários...