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 ?
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
Don't forget to click on his Donations link!