Title: select from a new table
Last modified: August 19, 2016

---

# select from a new table

 *  [y7ol](https://wordpress.org/support/users/y7ol/)
 * (@y7ol)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/select-from-a-new-table/)
 * hi
    i have a page called userinfo.php located in the wordpress folder. when i
   call this page i want to display some information from a table i created called
   WP_M_PROFILE
 * i try to get results from the table but nothing comes back;
 * im using
 * >  <?php
   >  include (‘wp-blog-header.php’); header(“HTTP/1.0 200 OK”); global $
   > wpdb; $ddatequery = $wpdb->get_row(“SELECT * FROM $wpdb->WP_M_PROFILE WHERE
   > M_USERID = 4”); echo $ddatequery->M_DUEDATE;
   > ?>
 * the table is named WP_M_PROFILE and M_USERID, M_DUEDATE are fields in the table
 * what am i doin wrong

The topic ‘select from a new table’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [y7ol](https://wordpress.org/support/users/y7ol/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/select-from-a-new-table/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
