If you’ve destroyed your WordPress blog somehow by switching to a theme that has bad code, here is a little trick I just found.
You’ll need to log into phpMyAdmin, or something similar and run this query on your database:
UPDATE wp_options SET option_value='default' WHERE option_name='template' OR option_name='stylesheet'
From there you can log in and set the theme to what it was before you destroyed your site.