I am trying to insert form value into database, but the data is not going into mysql. I spent lots of hour but could not resolve it... this is my code:
$query = "insert into $tabl (userid, username, question, board, class, subject, article, status, uniq_id,date,activation ) values('$userid', '$username', '$question', '$board', '$class', '$subject', '$article', 'unread', '$uniq',CURDATE(), '0')";
$row = mysql_query($query);
if($row)
{
header("location:ask-questions.php?msg=saved");
}
else
{
header("location:ask-questions.php?msg=not been saved");
}
////////// (1)End of the Code /////////////
?>
all things are ok, and i echo $sql,
this also working fine...
any help would be appreciate....