MetaTables(); $adodb->debug = 1; $i = 0; foreach ($metaTables as $k => $v) { if (ereg('^qb_temp_', $v)) { $i++; $adodb->Execute("DROP TABLE IF EXISTS ".$v); } } if ($i === 0) echo 'No Temporary Tables Deleted.'; ?>