Why am I only getting the first result back?
<p>I am working on a pretty simple project, where I am retrieving user information from my database.</p>

<p>I wrote a function to retrieve database results; in this case is it for a login system.</p>

<p>But for some reason only the first row is sent back to me. <strong>What am I doing wrong?</strong></p>

<pre><code>// Get query results
function sqlGetResult($query) {

    // Connection to database
    $connection = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
    $result = mysqli_query($connection, $query);

    if($result === false) {
            mysqli_close($connection);
            exit;
    }

    $row = mysqli_fetch_assoc($result);
    mysqli_free_result($result);
    mysqli_close($connection);

    return $row;
}

function getUserInfo($extras = '') {
    return sqlGetResult("SELECT email, password FROM database {$extras}");
}
</code></pre>
