I have just moved to a new Linux hosting with PHP and MySQL. At the last place I hosted the website I got no errors but here suddenly I got several errors:
"Notice: Undefined variable: news in /home/53/index.php on line 12"
$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'";
Why did I get that error in my new hosting and what is actually wrong? I'm not to good at Php :/
Here is another one:
Notice: Undefined variable: news_id in /home/53/index.php on line 4
$sql = "SELECT * FROM cmt_table WHERE cmtnews_id = '$news_id' AND cmt_checked = '1' ORDER BY cmt_date DESC";