Remniscate

1

votes
1

answer
253

views

How fetch_assoc know that you want the next row from the table?

If we would have code like this: $result = $conn->query('SELECT username FROM users'); $row1 = $result->fetch_assoc(); echo $row1['username'], ''; $row2 = $result->fetch_assoc(); echo $row2['username'], ''; Second echo would show username from second row in table, but why? How fetch_assoc() know tha...
Remniscate