Title: plugin development issue
Last modified: August 20, 2016

---

# plugin development issue

 *  [KimSchroeder](https://wordpress.org/support/users/kimschroeder/)
 * (@kimschroeder)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-development-issue/)
 * before anyone comes back with a “Why are you doing X anyway?
    just assume for
   the sake of arguement that i have a real reason, but i don’t want to add 3-4 
   paragraphs to explain it. my table name is wp_wuwc_users i have tried wuwc_users
 *     ```
       $usrcnt = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $wpdb->wp_wuwc_users"));
       $user_count = $wpdb->get_results( "SELECT count(*) as cnt FROM wp_wuwc_users" );
       echo $usrcnt;  // does not return any data or anything else?
       print_r ($user_count[0]->cnt); // this works fine;
       ```
   
 * is there a reason the former will not work? I am using an register_activation_hook
   to build the tables in the wp database.

The topic ‘plugin development issue’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [KimSchroeder](https://wordpress.org/support/users/kimschroeder/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-development-issue/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
