Hi, I'm trying to assign the value of a specific row to a var, the code is:
$rsdepall=mysqli_query($conn, $sql) or die(mysqli_error($conn));
$xbandera=$rsdepall['depto'];
But I got the next error:
[
Fatal error: Cannot use object of type mysqli_result as array
my question is, what is the right way to pass the value of the row 'depto' to the $xbandera var?
regards