session_start();
include "const/funkcje.inc";
include "const/conect.php";
$w_opisach='';
$string='';
if (isset($_GET['item']))
$item=eregi_replace('#','',strip_tags($_GET['item']));
else
$item='';
$pyt=mysql_query('select a.id, a.temat, a.tresc , a.data, a.godzina, count(o.id), avg(o.ocena)
from aktualnosci a left join opinie o on o.id_towaru=a.id and o.dzial="art" and o.status=1 and ocena>0
where a.id="'.$item.'" group by 1');
if(!mysql_num_rows($pyt))
{
include "const/header.php";
include 'const/kategorie_zapytania.php';
include "wyszukiwarka.php";
echo '
Brak strony do wyświetlania
| | ';
}else
{
$towar=mysql_fetch_row($pyt);
$category=popraw($towar[2]);
include 'const/kategorie_zapytania.php';
$tyt= popraw($towar[1]);
$des=explode('',popraw($towar[2]));
$description=$des[0];
$keywords=popraw($towar[1]).' ,';
include "const/header.php";
include "wyszukiwarka.php";
//include "const/ikonki_gorne.php";
echo '
|
Dodano: '.$towar[3].', '.$towar[4].'
|
';
echo nl2br(eregi_replace('','',popraw($towar[2])));
echo ' |
| | ';
if (isset($_GET['r']))
{
$r= stripslashes(strip_tags($_GET['r']));
}
$akcja='articles';
include "const/opinie.php";
}
//include "const/prawa_strona.php";
include "const/stopka.php";
?> | |