When I enter the page PHP already has an error:
Notice: Undefined index: name in C: \ wamp \ www \ index.php on line 41
Here is the code:
include ("conexao.php");
$nome = $_POST["nome"];
$resul = mysql_query("SELECT * FROM funcionarios WHERE nome = '$nome'");
while($row = mysql_fetch_array($resul))
{
print "
<tr align='center'>
<td> $row[id_funcionario] </td>
<td> $row[nome] </td>
<td> $row[idade] </td>
<td> $row[sobrenome] </td>
<td> $row[senha] </td>
</tr>
";
}
How to check for value in an array in PHP?