Translations:Manual:Database access/28/en

You can access individual rows of the result using a foreach loop. Once you have a row object, you can use the  operator to access a specific field. A full example might be Which will put an alphabetical list of categories with how many entries each category has in the variable $output.