echo "<p>点击这里继续. 请返回上一步确认您输入的所有资料都正确.</p>"; exit; } } ?> </div> <?php // end step 2 if ($_GET['step'] >= 3) { $DB_site = new DB_Sql_vb(); $DB_site->database = $dbname; $DB_site->server = $dbhost; $DB_site->user = $dbuser; $DB_site->password = $dbpass; $DB_site->connect(); } if ($_GET['step'] == 3) { echo "<div class=\"step3\">"; /** * // ------------------------------ -------- ------------------------------ // * STEP 3 * // ------------------------------ -------- ------------------------------ // */ echo "<div class=\"creat\">"; if ($_GET['reset'] == 1) { echo "<p>正在重置数据库..."; $result = $DB_site->query("SHOW tables"); while ($currow = $DB_site->fetch_array($result)) { $DB_site->query("DROP TABLE IF EXISTS {$currow['0']}"); }