Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
CODE
<?php
include "conecta_mysql.inc";
$NOME = $_POST["NOME"];
$resultado = mysql_query ("Select idPessoa, strNome, strContato from tbl_cadastro where strNome LIKE '%$NOME%'");
$qtd = mysql_num_rows($resultado);
Echo "Total de Registros carregados: ".$qtd;
echo "<font face='Arial' size='2'><Table border='1'cellpaddding='5'cellspacing='1'><tr>";
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);
?>
Galera...
Não consigo preencher meu campo telefone de jeito nenhum... alguém pode me ajudar...
A pesquisa ta retornando a quantidade de registros, o nome da pessoa mas o telefone fica em branco...já troquei o campo telefone por outro da tabela mas não acontece nada...
Desde já agradeço...
Carregando comentários...