$query) { DB::unprepared("DROP TABLE IF EXISTS $table;"); DB::commit(); DB::unprepared($query); DB::commit(); } echo 'All done! If you messed up your sphinx connection info, you can rerun this script.'.PHP_EOL;