I'm trying to make a file in php, which refers to the age of the person and then shows, however, the $ login appears to me but the person's age does not. I would like to know what I am doing wrong.
<?php
include ("sistema/validar_session.php");
include("config.php");
$login = "Goncalo";
$select = mysql_query("SELECT * FROM dados_usuarios WHERE Login = '$login'");
$consulta = mysql_fetch_array($select);
$idade = $consulta['idade'];
echo "Olá $login a sua idade é de $idade";
?>
Here's the table structure :