$sql = "select id, title, month, year, url_to_go, seo_url from newsletter where language = '$lng' order by year desc, month desc, date_entry desc";
$result = mysql_query ($sql, $connection);
$i=0;
while ($row = mysql_fetch_assoc($result)){
$i++;
$id = $row["id"];
$title = $row["title"];
$month = $row["month"];
$year = $row["year"];
$url_to_go = $row["url_to_go"];
$seo_url = $row["seo_url"];
?>
-
if ($url_to_go!=""){
?>
echo $title; ?>
}
else{
?>
echo $title; ?>
}
?>
echo $monthArr[$month-1]." ".$year; ?>
}
?>