dbh; // initialized MySQL database handle #$this->key; // primary key name #$this->key_type; // primary key type #$this->key_delim; // primary key deliminator #$this->rec; // primary key value (update and delete only) #$newvals; // associative array of new values (update and insert only) #$oldvals; // associative array of old values (update and delete only) #$changed; // array of keys with changed values require_once 'auth.php'; global $adodb; $arrsql = array(); $arrsql[] = "DROP TABLE ".$oldvals['tableid']." "; $arrsql[] = "DROP TABLE ".$oldvals['tableid']."_crc "; $arrsql[] = "DROP TABLE ".$oldvals['tableid']."_history "; $arrsql[] = "DELETE FROM qb_log ". " WHERE tableid = '".$oldvals['tableid']."' "; foreach ($arrsql as $key => $sql) { $rs = $adodb->Execute($sql); if (!$rs) echo $adodb->ErrorMsg(); } ?>