PDA

View Full Version : automatically delete a product after it's been imported


harmor19
08-05-2006, 03:19 AM
I have created a product that just removed tables from the database.
The reason for this is because sometimes I make an error on the full product but it still adds the tables.
So instead of going into phpmyadmin and deleting the tables I just upload the product and it'll do it for me.

On my "Uninstall" product I tried adding these two codes to the product.
$db->query_write("DELETE FROM " . TABLE_PREFIX . "product WHERE productid = 'nav-uninstall' ");
But that didn't work. So I tried
delete_product("nav-uninstall");
But that didn't work either.