Fetching Multiple Rows from MySQL

Here have an example.
https://community.asterisk.org/t/fetch-did-from-my-mysql-db/78562/3