$name = "SELECT * FROM users WHERE name == 'alex'";
$result3 = mysqli_query($conn, $name);
$b = array();
if(mysqli_num_rows($result3) > 0) {
while($row = mysqli_fetch_assoc($result2)) {
$b[] = $row;
}
} else {
echo "0 results";
}
print_r($b);
$b = $conn->query("SELECT * FROM users WHERE name = 'alex'")->fetch_all(MYSQLI_ASSOC);
if($b) {
print_r($b);
} else {
echo "0 results";
}