Title: Get data from table in plugin
Last modified: August 20, 2016

---

# Get data from table in plugin

 *  [pras0784](https://wordpress.org/support/users/pras0784/)
 * (@pras0784)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/get-data-from-table-in-plugin/)
 * Hi,
 * I am learning making plugins. I have made a plugin which created a table. I inserted
   records in table manually and now I am displaying those records in back-end through
   plugin. But it is not displaying anything.
 * Please have a look at the code and help me in this regard.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Prashant

Viewing 1 replies (of 1 total)

 *  Thread Starter [pras0784](https://wordpress.org/support/users/pras0784/)
 * (@pras0784)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/get-data-from-table-in-plugin/#post-2783233)
 *     ```
       <?php
       global $wpdb;
   
       $sql = $wpdb->get_results( "SELECT *  FROM wp_images'") ;
   
       //$sql=$wpdb->get_results("select * from $wpdb->images");
       echo '<pre>';
       print_r($sql);
       echo '</pre>';
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Get data from table in plugin’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [pras0784](https://wordpress.org/support/users/pras0784/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/get-data-from-table-in-plugin/#post-2783233)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
