mysql_query("SET NAMES greek");
$query = "SELECT * FROM ".$db_prefix."news where active = 'Y' and lang = '".$_SESSION["interface_lang"]."' order by date DESC";
$result = mysql_query($query) or die(mysql_error());
$i = 0;
WHILE ($row = mysql_fetch_array($result))
{
$id = $row["id"];
$date = $row["date"];
$text_news = stripslashes($row["text_news"]);
//$text_news = str_replace("\n", "", $text_news);
//$text_news = str_replace("\r", " ", $text_news);
$thema_news = stripslashes($row["thema"]);
//$thema_news = str_replace("\n", "", $thema_news);
//$thema_news = str_replace("\r", " ", $thema_news);
?>
=date("d-m-Y", date_to_timestamp2($date))?>: =$thema_news?>
style=" if ($i == $_GET["id"]) echo "display:block"; else echo "display: none;";?>" class="text">=$text_news?>
$i++;
}?>
|