Title: how to implement sql in wordpress code ?
Last modified: August 20, 2016

---

# how to implement sql in wordpress code ?

 *  [cacak](https://wordpress.org/support/users/cacak/)
 * (@cacak)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/how-to-implement-sql-in-wordpress-code/)
 * i try this sql syntax in phpmyadmin and it work.
    this the code
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * and the result is
 *     ```
       | post_id | year       | manufacturer      | model    |
           ------------------------------------------------------
           |   20    | 2005       | Audi Manufacturer | Audi     |
           |   35    | 2005       | Audi Manufacturer | Audi A6  |
       ```
   
 * how to implement that sql in wordpress code ?
 * I tried the code below and nothing happens
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * can you help me , please ?
    thanks

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/how-to-implement-sql-in-wordpress-code/#post-2382141)
 * [http://codex.wordpress.org/Function_Reference/query_posts](http://codex.wordpress.org/Function_Reference/query_posts)
   
   [http://codex.wordpress.org/Function_Reference/get_posts](http://codex.wordpress.org/Function_Reference/get_posts)
   [http://codex.wordpress.org/Function_Reference/WP_Query](http://codex.wordpress.org/Function_Reference/WP_Query)

Viewing 1 replies (of 1 total)

The topic ‘how to implement sql in wordpress code ?’ is closed to new replies.

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/how-to-implement-sql-in-wordpress-code/#post-2382141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
