I'm still learning and don't know which PHP\MySQL query is more proper? they both work fine but I'm using second one
$query = "SELECT Id, username, email FROM members";
$result = $conn->query($query);
if ($result) {
while ($row = mysqli_fetch_array($result)){
or
$query = mysqli_query($conn,"SELECT Id, username FROM members");
if ($query) {
while ($row = mysqli_fetch_array($query))