Viewing File: /people/testlab/www/testlab.com.pl/script/s670.php

<?
$db = new DBConnect();
$db2 = new DBConnect();
$sql="select * from pages where id='".$_GET['page']."'";
$db->query($sql);
$row=$db->fetchrow(); 
$nazwa_strony=$row['nazwa'];
$opis_strony=$row['tresc'];


if ($opis_strony!='') echo $opis_strony."<br>";
$sql = "select * from `aktualnosci` where skrypt_id=".$_GET['page']." "; //and (`tresc_krotka` like '".$_GET['page'].",%' or `tresc_krotka` like '%,".$_GET['page'].",%'  or `tresc_krotka`='')  order by rand()
$result = $db->query($sql);

//<div id=links>
//<div id=links_header></div>
//<div id=links_body>

while ($row=$db->fetchrow())
{
echo "<br>";
//echo "<div id=links_block>";
if ($row['link']!='') echo "<a href='http://".$row['link']."' target=blank title=''>";
if (file_exists("upload/".$row['plik'].".jpg")) 
echo "<img src='upload/".$row['plik'].".jpg' alt='' style='vertical-align:middle;'>";
echo " ".$row['nazwa']." ".$row['tresc']; 
if ($row['link']!='') echo "</a>";
//echo "</div>";
}

//</div>
//</div>
?>


Back to Directory File Manager