> For the complete documentation index, see [llms.txt](https://docs.saturncms.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.saturncms.net/1.0.0/dev/libraries-and-functions/databasemanager/dbms/query-information.md).

# Query Information

## Row count

You can get the row count for your last query by using the `RowCount()` function in DBMS. This will return the row count for the previous query.

```php
use Saturn\DatabaseManager\DBMS;
$DB = new DBMS();

// Some query here

$DB->RowCount();
```

## Query errors

You can find errors for the previously sent query by using the `Error()` function.

```php
use Saturn\DatabaseManager\DBMS;
$DB = new DBMS();

// Some query here

$DB->Error(); // Returns any query errors
```
