Cytat(nospor @ 30.08.2006, 13:29:25 )

A ty masz wogole php zainstalowane? On ci ten plik czyta jako php? Podejrzyj ¼rodlo tej strony i sprawd¼ co w nim masz. Jak twoj kod php to.... no wlasnie

No bez przesady:)
Jak wywale kod php to juz strona sie laduje, a jak kod jest to nawet funkcja
nie dziala.
php jest na pewno, mam zainstalwoane miedzy innymi forum phpbb i setka pzosotalych stron w php dziala:)
Eh zapodam ten kod, obciety o rzeczy, ktore nic nie wnosza:
<?php
echo'<font class="blue"><b><font size="4"><center>bb_article</center></font></font></b> '; if(!isset($_POST['submit']) && ($_GET['ids'] == '' || $_GET['pg'] == '')){
echo '<br/><form name="formularz" method="post"> <input type="hidden" name="id" value="'.$wsk.'"/>';
echo '<b>title, *article</b><br />'; echo'<FIELDSET class="form"> <LEGEND><b><font class="blackh">Wyszukiwana fraza</font></b></LEGEND>';
<table>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="2">
<tr>
<td>';
// Oficjalna
echo '<input type="text" size="73" name="title"/><br />'; echo '<INPUT type="checkbox" size="48" name="skycraper" value="1">*przeszukuj take tre"'; </td>
</tr>
</table>
</td>
</tr>
</table>
</FIELDSET><br /><br />
<center><input type="submit" /></center><br />';
}
else
{
$intLimit = 5; //ilo¶æ rekordów na stronie;
if( empty( $_GET['pg'] ) ) {
$intCurrentPage = 0;
}
else
{
$intCurrentPage = $_GET['pg'];
}
if ($_GET['pg'] == ''){
$name = $_POST['name'];
$all = $_POST['skycraper'];
if ($name == '' || $name == 'NULL')
{
echo '<center><b>brak kryterium wyszukania</b></center>';
</tr>
</table>
</td>
<td width="13" background="layout/backg_dots_single.gif"> </td>
<td width="233" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="233">
<tr>
<td background="layout/menu_blue.gif" height="20"><font class="white"><b> WIADOMO¦CI</b></font></td>
</tr>
<tr>
<td bgcolor="#E6EEF4"> </td>
</tr>
<tr>
<td height="3"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="7" background="layout/grad_right.gif"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="5" background="layout/backg_main.gif"></td>
</tr>
</table>
</center>
</table>
<center>';
include("copyr.php");
</body>';
break;
}
$ids = $id*17+$time;
$z="select distinct bb_article.id,bb_article.title,bb_article.article from bb_a
rticle where bb_article.id>0 ";
if(ta($_POST[title])<>'')
{
$p=$_POST[title];
foreach($s as $value)
{
$p=ta($value);
if(ta($_POST[skycraper])=='1')
{
$z.="and ( bb_article.title like '%$p%' or bb_article.article like '%$p%' )";
}
else
{
$z.="and bb_article.title like '%$p%' ";
}
}
}
$z.='order by id;';
// $z zawiera zapytanie do bazy
$wynik=sql("$z");
}
else
{
$name = $bb_search[1];
$all = $bb_search[2];
$z="select distinct bb_article.id,bb_article.title,bb_article.article from bb_a
rticle where bb_article.id>0 ";
if(ta($title)<>'')
{
$p=$title];
foreach($s as $value)
{
$p=ta($value);
if(ta($all)=='1')
{
$z.="and ( bb_article.title like '%$p%' or bb_article.article like '%$p%' )";
}
else
{
$z.="and bb_article.title like '%$p%' ";
}
}
}
$z.='order by id;';
// $z zawiera zapytanie do bazy
$wynik=sql("$z");
}
<td colspan="2" class="hgrey">Wyniki wyszukiwania budynków</td>
</tr>
<tr>
<td colspan="2">';
if ($_GET['pg'] == ''){
$z="select distinct bb_article.id,bb_article.title,bb_article.article from bb_a
rticle where bb_article.id>0 ";
if(ta($_POST[title])<>'')
{
$p=$_POST[title];
foreach($s as $value)
{
$p=ta($value);
if(ta($_POST[skycraper])=='1')
{
$z.="and ( bb_article.title like '%$p%' or bb_article.article like '%$p%' )";
}
else
{
$z.="and bb_article.title like '%$p%' ";
}
}
}
$z.='order by id;';
// $z zawiera zapytanie do bazy
$wynik=sql("$z");
$n++;
<td height="2"></td>
</tr>
<tr>
<td width="50"><p style="margin-left: 4">';
for($i=0;$i<$num;$i++)
{
print("$r[0],$r[1],$r[2]<br>");
<tr>
<td height="2"></td>
</tr>
<tr>
<td bgcolor="#BFBFBF" height="1" colspan="2">
</td>
</tr>'
}
}
else
{
$name = $bb_search[1];
$all = $bb_search[2];
$z="select distinct bb_article.id,bb_article.title,bb_article.article from bb_a
rticle where bb_article.id>0 ";
if(ta($title)<>'')
{
$p=$_POST[title];
foreach($s as $value)
{
$p=ta($value);
if(ta($all)=='1')
{
$z.="and ( bb_article.title like '%$p%' or bb_article.article like '%$p%' )";
}
else
{
$z.="and bb_article.title like '%$p%' ";
}
}
}
$z.='order by id;';
// $z zawiera zapytanie do bazy
$wynik=sql("$z");
for($i=0;$i<$num;$i++)
{
$n++;
<td height="2"></td>
</tr>
<tr>
<td width="50"><p style="margin-left: 4">';
print("$r[0],$r[1],$r[2]<br>"); <tr>
<td height="2"></td>
</tr>
<tr>
<td bgcolor="#BFBFBF" height="1" colspan="2">
</td>
</tr>';
}
}
for($i = 0; $i<ceil($intCount/$intLimit); $i++)
{
echo ' <a href="searchengine.php?ids='.$ids.'&pg='.$i.'">['.($i+1).']</a> '; }
echo ' <center><b>Znaleziono <font class="red">'.$intCount.'</font> budynkow spe³niaj±cych te kryteria</b></center>'; }
?>