0
I’m doing a search in the bank to see if the amount sent already exists in it.
This is the function I’m using:
function buscaSubdominio($conexao, $nome_subdominio){
$query = "select * from subdominio where nome_subdominio = ('{$nome_subdominio}')";
return mysqli_query($conexao, $query);
}
So I’m making this condition on another page:
$confere = buscaSubdominio($conexao, $nome_subdominio);
if($confere == null){
echo "registro inexistente";
}
else{
echo "registro existente";
}
He gives me back that mistake, you can help me?
Notice: Undefined property: mysqli_result::$nome_subdominio in C:\xampp \htdocs\daLuz\subdominio.php on line 8
Okay, and what exactly is the problem ? Please explain the situation better. You can’t make a query because the "user" is "outdated" ?
– 8biT
I put user undressed because I was going to ask otherwise, but I forgot to change. I will change the title. This is the error that comes, but I will edit: Notice: Undefined Property: mysqli_result:$nome_subdominio in C: xampp htdocs daLuz Subdomain.php on line 8
– Francis Vagner da Luz