Title: Drop Table strange error
Last modified: August 18, 2016

---

# Drop Table strange error

 *  [grosbouff](https://wordpress.org/support/users/grosbouff/)
 * (@grosbouff)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/drop-table-strange-error/)
 * Hello, I use this code to drop a table :
 * `if ($wpdb->query(" DROP TABLE`$table_name` “)) {
    $message.=’
    - table **‘.$table_name.’** dropped successfully.
    - ‘;
       } else { $message.=’
    - problem while dropping table **‘.$table_name.’**.
    - ‘;
       }`
    - The script IS correctly dropping the table; but show the incorrect message(‘
      problem while dropping table….’), do you know why ?
    - Also, is it possible to make a request to directly disable the plugin from
      my plugin page ?

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/drop-table-strange-error/#post-653362)
 * Can’t answer your question but maybe point you to an example.
 * Take a look at how Gamerz does the uninstall for WP-PostRatings 1.20 plugin. 
   There’s a table drop and a deactivation in there.
 * [http://lesterchan.net/portfolio/programming.php](http://lesterchan.net/portfolio/programming.php)
 * Don’t forget to click on his Donations link!

Viewing 1 replies (of 1 total)

The topic ‘Drop Table strange error’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/drop-table-strange-error/#post-653362)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
