Title: Custom Table Multiple Value Query
Last modified: August 20, 2016

---

# Custom Table Multiple Value Query

 *  [WordsfromWoo](https://wordpress.org/support/users/wordsfromwoo/)
 * (@wordsfromwoo)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/custom-table-multiple-value-query/)
 * I have been researching the last hour of whether or not I can run a query within
   wordpress on a custom table that I made using two WHERES. Now I’m new to mysql
   and php ( 9 months in ) and am just wondering if there is a way to do it besides
   a AND.
 * Here is an example of my code
 * $check_current = $wpdb->get_row(“SELECT * FROM $weather_table WHERE status = ‘
   current’ AND condition = $current_weather”);
 * status and condition are both fields and I’m trying to find out whether both 
   exist to rewrite the current field. The closest I’ve come is possibly using the
   prepare function in wordpress and php but don’t know what that is exactly just
   know it helps with sql injection and security. Can you run a multiple value query
   in wordpress?

The topic ‘Custom Table Multiple Value Query’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [WordsfromWoo](https://wordpress.org/support/users/wordsfromwoo/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/custom-table-multiple-value-query/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
