I'm doing a searcher for a client site, I've done the form code and the search code, and it showed the result.
My table and so:
NAME DATE OF BIRTH.ITY.DATA OF DEATH.QUADRA.JAZIGO.GAVETA
In the case at the moment the result is just the name, more precise than it is of the other columns also, when I put the name of the person, the other data of the line
php search code:
<?php
$servidor = "localhost";
$usuario = "root";
$senha = " SENHA OCULTA";
$database = "cemiterio";
//Criar a conexao
$conn = mysqli_connect($servidor, $usuario, $senha, $database);
$pesquisar = $_POST['pesquisar'];
$sql = "SELECT * FROM 'jazigos' WHERE 'NOME' LIKE '%{$pesquisar}%' LIMIT 25";
$resultado_cemiterio = mysqli_query ($conn,$sql);
while($rows_sql = mysqli_fetch_array($resultado_cemiterio, MYSQLI_ASSOC)){
echo "Resultado da Pesquisa:". $rows_sql["NOME"] ."<br>";
}
?>