"Notice: Undefined variable: news in /home/53/index.php on line 12"
Code: Select all
$sql="SELECT *, DATE_FORMAT(news_date, '%d.%m.%y') AS date FROM newstable, authortable WHERE newstable.news_authorid = authortable.author_id AND newstable.news_id = '$news'";Here is another one:
Notice: Undefined variable: news_id in /home/53/index.php on line 4
Code: Select all
$sql = "SELECT * FROM cmt_table WHERE cmtnews_id = '$news_id' AND cmt_checked = '1' ORDER BY cmt_date DESC";