I would like to be able to select a category from a dropdown and depending on the category it will add it to whatever SQL table is it equal with.
You cannot use that type of variables, change last code to
$sql="INSERT INTO $article (headline, content)
VALUES ('" . $_POST['headline'] " . ', '" . $_POST['content'] . "')";
I know this answer won't be too helpful for you right now, but sice there is just too much wrong with that code and that approach, here are a few tips:
$article value! if($article == 'foo' || $article == 'bar') {...}"This is a ".$adjective." string" and "This is a {$adjective} string"Try:
"INSERT INTO `{$article}` ...."
Don't forget to sanitize your input! (mysql_real_escape_string, for starters)