droptable.php 506 B

123456789101112131415161718192021
  1. <?php
  2. require_once 'auth.php';
  3. $sql = ("DROP TABLE ".$_POST['tableid']);
  4. echo "SQL: ".$sql."<br>";
  5. echo "RESULT: ";
  6. $rs = $adodb->Execute($sql);
  7. if (!$rs) echo $adodb->ErrorMsg();
  8. else {
  9. echo "Drop Success";
  10. echo "<script language=javascript>
  11. opener.document.forms[0].tableid.readOnly = false;
  12. opener.document.forms[0].tableid.style.color = 'black';
  13. </script>";
  14. }
  15. $adodb->Execute("DROP TABLE qb_temp_".$_POST['tableid']);
  16. $adodb->Execute("DROP TABLE ".$_POST['tableid']."_crc");
  17. ?>