Get the 1st row as an associative array: Array ( [id] => 1 [user_id] => 42 [url] => /test [time] => 2017-01-14 10:11:23 ) Get the next row as a numeric array: Array ( [0] => 2 [1] => 42 [2] => /test2 [3] => 2017-01-14 10:11:44 ) Last visit of '/test': Array ( [id] => 282 [user_id] => 1337 [url] => /test [time] => 2025-10-06 09:49:39 ) User count: 2