Title: User-Generated SQL Query
Last modified: August 21, 2016

---

# User-Generated SQL Query

 *  [MaxRys](https://wordpress.org/support/users/maxrys/)
 * (@maxrys)
 * [13 years ago](https://wordpress.org/support/topic/user-generated-sql-query/)
 * I would like my website users to be able to search a database of employees and
   the employee data would be displayed in a table under the search.
 * For example, if someone were to search “Jim Hammond”
 * The plugin would be able to generate a query like this:
    `SELECT firstname, lastname,
   phone, city, state FROM Employees_b1 WHERE (firstname = 'Jim') AND (lastname 
   = 'Hammond')`
 * and display the resulting data in a table below the search entry.
 * Is there such a plugin? Is there an easier way to do this?

The topic ‘User-Generated SQL Query’ is closed to new replies.

## Tags

 * [query](https://wordpress.org/support/topic-tag/query/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 0 replies
 * 1 participant
 * Last reply from: [MaxRys](https://wordpress.org/support/users/maxrys/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/user-generated-sql-query/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
