Good afternoon, I'm trying to query an integer value in my DB and save it to a variable, I tried this way:
$procuraPreco = mysqli_query($connect, "SELECT preco FROM infs WHERE seis='$seis' and bin='$bin' and quantidade='$qndtd'");
print_r($retornaPreco = mysqli_fetch_all($procuraPreco,MYSQLI_ASSOC));
The array is returning empty. I know it might be a possible duplicate but I have already tried it in many ways and I could not