Witam. Mam taki kodzik
<?php
include('config.php');
$query = query('kategorie', "`ID` = '".$inc[1]."'");
$row = mfa($query);
$query2 = query('podkategorie', "`id_kat` = '".$inc[1]."'");
show('<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
<title>'.$row[$lang].'</title>
<link rel="stylesheet" type="text/css" href="'.$URL.'/style.css">
</head>');
include('logo.php');
show('
<table class="table_category" align="center">
<tr>
<th class="header" align="left"> <a href="'.$URL.'/" class="aheader">'.INDEX.'</a> >> <a href="'.$URL.'/category/'.$row[0].'/" class="aheader">'.$row[$lang].'</a></th>
</tr>
<tr>
<th>
<table class="category">
<tr>
<th class="header2">'.UNDERCAT.'</th>
</tr>
');
$i = 0;
while($row = mfa($query2)){
$i++;
$class = $i % 2;
$query1 = query('produkty', "`id_podkat` = '".$row[0]."'");
$ilosc = mnr($query1);
show('<tr class="cat_'.$class.'"><th><a href="'.$URL.'/products/'.$inc[1].'/'.$row[0].'/">'.$row[$lang].' ('.$ilosc.')<a/></th></tr>');
}
show('</table></th></tr></table>
');
?>
Problem jest w tym, że nie wyświetla on podkategorii danej kategori tylko wyswietla cos takiego
Kod
[b]Fatal error[/b]: Maximum execution time of 120 seconds exceeded in [b]c:\usr\www\function.php[/b] on line [b]24[/b]
i wyswietla duuuużo 0 na stronie. Jak temu zaradzic?
Ten post edytował Mlodycompany 7.07.2008, 09:39:12