1
Mods & Plugins (Releases & Support) / Re: [Mod] Latest News and Archive
« on: March 27, 2005, 10:39:00 AM »
I have found a temporary solution maybe it will help to solve the problem, here are my code :
-------------------------------------------------------------------------------------------------------------
$new_news = (time() - 60 * 60 * 24 * $latest_news_days);
$newstype = $_GET["newstype"]; //I add this line.
if ($newstype == "latestnewsall"){
$news_type = "latestnewsall";
}
else {
$news_type = "latestnews";
}
$additional_sql = "";
$additional_sql_2 = ""; //and add this line too.
-------------------------------------------------------------------------------------------------
then it work, but still have error message(same above post), so I set PHP.ini to display_errors = Off
earthlyk
-------------------------------------------------------------------------------------------------------------
$new_news = (time() - 60 * 60 * 24 * $latest_news_days);
$newstype = $_GET["newstype"]; //I add this line.
if ($newstype == "latestnewsall"){
$news_type = "latestnewsall";
}
else {
$news_type = "latestnews";
}
$additional_sql = "";
$additional_sql_2 = ""; //and add this line too.
-------------------------------------------------------------------------------------------------
then it work, but still have error message(same above post), so I set PHP.ini to display_errors = Off
earthlyk