I am starting out plugin development and have followed the tutorials on the WordPress Codex sites. I am now stuck - I have a database called \"wp_imlisteningto\", where the
I think there are 2 mistakes in you sql string.
Think it should be the $table_name variable should be concatenated
$table_name
$sql = "CREATE TABLE" . $table_name . "( id mediumint(9) AUTO_INCREMENT, album VARCHAR(50), artist VARCHAR(50), PRIMARY KEY (id) )";
and remove ; on the last line.
;