Aaargh. This is driving me mad. I have a form that when the user hits submit, does the following function:
function SubmitVauthorStory ($categoryid, $parentstoryid, $childid, $title, $summary, $story, $ratingid, $char1, $char2, $genre, $author, $roundrobin, $submit){
global $bgcolor1, $bgcolor2, $prefix;
if ($submit) {
mysql_query("INSERT INTO ".$prefix."_fanfiction_stories (categoryid, parentstoryid, childid, title, summary, story, ratingid, char1, char2, genre, author, date, roundrobin) VALUES ('$categoryid', '$parentstoryid', '$childid', '$title', '$summary', '$story', '$content', '$ratingid', '$char1', '$char2', '$genre', '$author', now(), '$roundrobin')");
FanfictionHeader();
echo "Thank you for your submission.";
echo "cat id: $categoryid, parentstory id: $parentstoryid, childid: $childid, title: $title, summary: $summary, story: $story, rating: $ratingid, char1: $char1, char2: $char2, genre: $genre, author: $author, date: now(), roundrobin: $roundrobin";
FanfictionFooter();
}
}
I put that echo line in there to be sure that the values from the previous function were being carried over, and they are. BUT they are not getting inserted into the table. Do you see anything glaringly wrong with this function? I've stared at it so long, my eyes are starting to glaze over...