"; $success = false; } if(!$c_text){ $msg .= "Моля, въведете Вашия коментар.
"; $success = false; } if($success){ $sql = " INSERT INTO tbl_comments( c_author, c_text, c_cr_date, c_news_id) VALUES( '$c_author', '$c_text', ".time().", '$news_id')"; mysql_query($sql); header("Location: thankyou.html?id=$news_id"); exit(); } } ?>