Title: Retrieve Data from Database
Last modified: March 24, 2021

---

# Retrieve Data from Database

 *  [chickoder](https://wordpress.org/support/users/chickoder/)
 * (@chickoder)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/retrieve-data-from-database/)
 * Hello, I am working on a website that accepts volunteers. The database accepts
   a Route Number (cannot be duplicated) and their information. However, I would
   like to let volunteers, who wishes to sign-up, know what are the available routes.
   I am thinking to retrieve the route numbers that were taken. Would it be possible
   to retrieve data from database then do comparisons.
 * Alternative would be a dropdown menu showing all available route numbers, but
   I believe this needs to retrieve from the database as well.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/retrieve-data-from-database/#post-14229874)
 * It is possible to populate a selector from the database using code that would
   exclude any taken routes. You’ll need to understand how to query the database
   to get your filtered data.
 * I have an article that gives you the basics, you’ll need to come up with the 
   specific code for your situation.
 * [Populate a Form Dropdown from the Database](https://xnau.com/populate-a-form-dropdown-from-the-database/?swcfpc=1)

Viewing 1 replies (of 1 total)

The topic ‘Retrieve Data from Database’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/retrieve-data-from-database/#post-14229874)
 * Status: not resolved