0
You forgot to put an "i"...
$con = new mysqli($Conexao, $User $Senha, $Database))
It Creates the Connection For you, where:$Conexao = localhost (no teu caso)
$Database = Nome da tua base de dados
...
$consulta = "SUA QUERY";
$resultado = $con->query($consulta );
This Executes the Query for you.
while($row = $resultado->fetch_assoc()) {
echo "Dado: ".$row["dado"].";";
}
With this While you take the data that your query Returned.