Viewing File: /people/testlab/www/testlab.com.pl/news_right.php
<?
$sql = "select * from `pages` where id in (26,27) and jezyk=".$_SESSION['language']."";
$result = $db->query($sql);
$row=$db->fetchrow();
echo "
<div id=nowosci2>
<div id=nowosci2_header>".$row['nazwa']."</div>";
$link=$row['link'];
$sql = "select * from `aktualnosci` where skrypt_id=".$row['id']." order by data desc limit 2;";
$result = $db->query($sql);
while ($row=$db->fetchrow())
{
$nazwa=str_replace("-","",$row['nazwa']);
$nazwa=str_replace("\"","",$nazwa);
$nazwa=str_replace("__","_",$nazwa);
echo "<div class=nowosci2_title><a href='".str_replace(" ","_",$nazwa).",".$row['skrypt_id'].",".$row['id']."'>".$row['nazwa']."</a></div>";
echo "<div class=nowosci2_body>".$row['tresc_krotka']."</div>";
echo "<div class=nowosci2_more><a href='".str_replace(" ","_",$nazwa).",".$row['skrypt_id'].",".$row['id']."'>".$languages['wiecej']."</a></div>";
}
echo "<div id=nowosci2_showall><a href='$link.html'>".$languages['pokaz_wszystkie']."</a></div>";
echo "</div>";
?>
Back to Directory
File Manager