I have a phone book with the form already ready and now I need that when the user type in the field to search for a name or sector, this value must be compared with values of the database and a value corresponding to the search of it is returned.
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'];