Ok (IMG:
http://forum.php.pl/style_emoticons/default/smile.gif) tak myślałam że będzie potrzebny , już podaję cały kod :
<? include("db_connect.php");
include("function.php");
include("ust.php");
include("adm/namen.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><meta name="verify-v1" content="z48UTJoksu6eUnr+j0DECPlhQb8fRBCdlBKDM+x87bg=" /><!-- TradeDoubler site verification 1582835 --> <title><? if($_GET['q']!=""){echo mplus($_GET['q']).' - ';} echo $ust['title'];?></title> <meta name="Description" content="<? echo $ust['desc']; ?>" />
<meta name="Keywords" content="<? echo $ust['key']; ?>" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link rel="stylesheet" href="images/style.css" type="text/css" /> <script language="JavaScript" type="text/javascript">
function spr(aform){
if(aform.q.value==""){
alert("Podaj tytul piosenki");
return false;
}
}
<div class="header_top"></div> <li><a href="index.html">Home
</a></li> <? if($ust['onas']!=""){ ?><li><a href="onas.html">O Nas
</a></li><?}?> <? if($ust['regulamin']!=""){ ?><li><a href="regulamin.html">Regulamin
</a></li><?}?> <? if($ust['kontakt']!=""){ ?><li><a href="kontakt.html">Kontakt
</a></li><?}?>
<form method="GET" action="do.php" onSubmit="return spr(this)"> <input type="text" name="q" class="search" /> <input type="submit" value="Go" class="submit" /> <h1><a href="">MP3RADIO
<a href="http://www.alefirmy.pl"><img src="http://www.liczniki.wabi.pl/licznik.php?user=mp3radio" alt="Liczniki" border="0"></a></a></h1> <div class="header_bottom"></div>
<script type="text/javascript"><!-- google_ad_client = "pub-2740713983958791";
/* 728x90, utworzono 08-11-12 */
google_ad_slot = "9765793333";
google_ad_width = 728;
google_ad_height = 90;
//-->
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
<div class="header_top"></div> <h2><a href="popularne.html">Popularne
</a></h2> <p><? include("public/naj.php"); ?></p> <div class="box_bottom"></div> <? if($_GET['action']=="szukaj")
{
echo'
<div class="article">
';
include("public/search.php");
echo'
';
}
else if($_GET['action']=="kontakt")
{
echo'
'.nl2br($ust['kontakt']).'
';
}
else if($_GET['action']=="onas")
{
echo'
'.nl2br($ust['onas']).'
';
}
else if($_GET['action']=="regulamin")
{
echo'
'.nl2br($ust['regulamin']).'
';
}
else if($_GET['action']=="index" or $_GET['action']=="")
{
if($ust['index']!="")
{
echo'
Przepraszam za post pod postem ale caly kod sie nie mieścil (IMG:
http://forum.php.pl/style_emoticons/default/sad.gif)
'.nl2br($ust['index']).'
';
}
$link="news,page,";
$zapytanie = "SELECT * FROM news ORDER by id DESC";
if(!$strona){
$nr=$_GET["strona"];
if($nr==0)
{
$nr=1;
}
$strona=$nr;
}
$ile=$ust['ilen'];
$start=($strona-1)*$ile;
$wykonaj = mysql_query($zapytanie) or Die("Nie działa zapytanie". $zapytanie);
$ile_rek = mysql_num_rows($wykonaj);
$podstron = ceil($ile_rek/$ile);
$zapytanie.= " LIMIT $start,$ile";
$final = mysql_query($zapytanie) or Die ("Nie działa zapytanie końcowe");
$i=0;
while($row=mysql_fetch_array($final))
{
echo'
<h2><a href="news,'.$row['id'].','.namen($row['tytul']).'.html">'.$row['tytul'].'
</a></h2>
';
}
if($ile_rek>$ile)
{
include("podzial.php");
}
}
else if($_GET['action']=="news")
{
$Query='SELECT * FROM news WHERE id="'.mysql_real_escape_string($_GET['id']).'"';
$result = mysql_query($Query) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
echo'
<h2><a href="news,'.$row['id'].','.namen($row['tytul']).'.html">'.$row['tytul'].'
</a></h2> '.nl2br($row['tresc']).'
';
}
}
else if($_GET['action']=="ostatnio-szukane")
{
echo'
<h2>Ostatnio szukane
</h2>
$Query='SELECT * FROM search ORDER by datal DESC';
$result = mysql_query($Query) or die(mysql_error());
while($row=mysql_fetch_array($result))
{
echo'
<a href="do,'.$row['txt'].'.html">'.mplus($row['txt']).'
</a><br>';
}
';
}
else if($_GET['action']=="popularne")
{
echo'
$Query='SELECT * FROM search ORDER by ile DESC';
$result = mysql_query($Query) or die(mysql_error());
while($row=mysql_fetch_array($result))
{
echo'
<a href="do,'.$row['txt'].'.html">'.mplus($row['txt']).'
</a><br>';
}
';
}
?>
<h2><a href="ostatnio-szukane.html">Ostatnio szukane
</a></h2> <p><? include("public/ost.php"); ?></p>
<div class="box_bottom"></div> <div class="header_bottom"></div> <p><center>Copyright Š 2008 .
<a href="http://www.tsi-g.info">TSI-G
</a> <? echo $ust['stat'];?>
<!---
TSI-G mp3 Serach 1.0 by piotrek-d1
email: piotrek-d1@o2.pl
www.tsi-g.info
--->
Z góry dziękuję za pomoc i Pozdrawiam[/code]
Powód edycji: Poprawiłem bbCode (ociu)