View Single Post
Old 01-09-2013, 09:46 PM   PM User | #22
elitis
Regular Coder

 
Join Date: Sep 2010
Posts: 321
Thanks: 9
Thanked 6 Times in 6 Posts
elitis is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
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());
  } 
__________________
Coding is a challenge, get used to it
Always remember to debug
Try the guess & check method
Break it down into simple steps
elitis is offline   Reply With Quote