Quote:
Originally Posted by Fou-Lu
That's not my question.
PHP Code:
var_dump($_POST); // may as well add in the get but it looks pretty straight forward var_dump($_GET);
What does that have when you have submitted the form. What you think in there versus what is is likely the problem.
|
oh lol, my mistake. You meant values; I'm not getting anything.
PHP Code:
$sql = "INSERT INTO `comments` (`username`, `comment`, `date`, `category`, `subcategory`, `reply_to`) VALUES ('$username','$comment', NOW(), '$category', '$subcategory', '$reply')";
var_dump($_POST);
// may as well add in the get but it looks pretty straight forward
var_dump($_GET);
if (!mysql_query($sql)) {
die('Error: ' . mysql_error());
}