yeah, that is my first approach:
$ct_query = "CREATE TABLE " . $newtopic . " ( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), username VARCHAR(50), instid TINYINT(2), groupid TINYINT(2))");
$cq = mysql_query($ct_query);
this does not work though when its a two or more word table name.