1
I have a phone book with the form already ready and now I need that when the user type in the field search a name or sector, this value should be compared with values of the database and be returned a value that corresponds to his search.
Follow my PHP code so far;
$bdServidor = '';
$bdUsuario = '';
$bdsenha = '';
$bdBanco = 'lista_telefonica';
$conexao = mysqli_connect($bdServidor, $bdUsuario, $bdsenha,$bdBanco);
if(mysqli_connect_errno($conexao))
{
echo"problemas para conectar no banco.Verifique os dados!";
die();
}
// Variavel que contem o valor do campo BUSCA;
$valor = $_POST['busca'];
Welcome to stackoverflow in English! Next time try explaining your question and what you want. Have you tried anything? If yes show your code and describe where the problem is.
– Jorge B.