$articletitle = $_POST['articletitle'];
$category = $_POST['category'];
$description = $_POST['description'];
$article = $_POST['article'];
$categoryinfo = mysql_query("Select * from categories where name = '$category'");
$categoryid = mysql_fetch_array($categoryinfo);
$date = date("Y-m-d H:i:s");
$member = $userinfo[name];
$category = $categoryid[id];
$mid = $userinfo[id];
$articlesql = "INSERT into articles (title,member,category,description,article,mid,date,approved) VALUES ('$articletitle','$member','$category,'$description','$article','$mid','$date','no')";
$insertsql = mysql_query($articlesql) or die ("unable to submit");
All posted variables are available, along with the userinfo variables. The other colomns on the table are allowed to be null. I always get "unable to submit" when I try to run the query. What's wrong?