Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][MySQL][PHP]Błąd 404, Jaka przyczyna?
markaz
post 20.05.2010, 10:34:03
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 20.05.2010

Ostrzeżenie: (0%)
-----


Witam wszystkich.
Mam problem tego typu że w sklepie internetowym którym mam administrować wyskakuje Błąd 404 The requested URL /sklep/produkty,poduszki-ogrodowe.html was not found on this server. Jak mogę usunąć tą usterkę?

Bardzo proszę o pomoc. Ja aż tak nie znam się na programowaniu dopiero się uczę PHP i wdrażam w to wszystko.

Pozdrawiam.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
markaz
post 20.05.2010, 12:37:51
Post #2





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 20.05.2010

Ostrzeżenie: (0%)
-----


plik htaccess w głównym katalogu jest pusty.
Plik produkty.php odpowiada za wyświetlanie kategori poniżej kod:

<?php

$kategoria = $var1;
$grupa = $var2;
$id = $var3;

if (empty($kategoria)){
$text = getOneWhere($langPrefix.'text', "sekcja = 'strona_glowna'");
}
else {
$text['nazwa'] = $vars['produkty_tytul'];
}


$list['kategorie'] = getListWhere($langPrefix.'kategoria', 'pozycja asc', "sekcja = 'produkty' and ukryty = 0");
$contents="sekcja/produkty.tpl";

if (!empty($kategoria)) {
$kategoria = getOneWhere($langPrefix.'kategoria', "link_id = '".$kategoria."'");
$list['grupy'] = getListWhere($langPrefix.'subtext', 'pozycja asc', "sekcja = 'produkty' and kategoria = '".$kategoria['id']."'and ukryty = 0");
$_SESSION['last_produkt']['kategoria'] = $kategoria['link_id'];

if (count($list['grupy']) == 1) {
if (empty($list['grupy'][0]['image'])){
$grupa = $list['grupy'][0]['link_id'];
$hide_submenu = true;
};
};

if (!empty($grupa)) {
$grupa = getOneWhere($langPrefix.'subtext', "link_id = '".$grupa."'");

$list['produkty'] = getListWhere($langPrefix.'kolor', 'pozycja asc', "parent_id = '".$grupa['id']."'and ukryty = 0");
$_SESSION['last_produkt']['grupa'] = $grupa['link_id'];

foreach ($list['produkty'] as $key => $listValue) {
$list['flas_info'].= $listValue['webimage']."|";
$list['flas_info'].= "produkty,".$kategoria['link_id'].",".$grupa['link_id'].",". $listValue['link_id'].".html;";
}

$list['flas_info'].= "&nograss=";
foreach ($list['produkty'] as $key => $listValue) {
if ($listValue['trawa'] == 0 ) {
$list['flas_info'].= "true;";
}
else {
$list['flas_info'].= "false;";
}
}
}

if (!empty($id)) {
$produkt = getOneWhere($langPrefix.'kolor', "link_id = '".$id."' and parent_id = '".$grupa['id']."'");
$_SESSION['last_produkt']['produkt'] = $produkt['link_id'];

$list['ceny'] = getListWhere($langPrefix.'cena', 'pozycja asc', "parent_id = '".$produkt['id']."'and ukryty = 0");

// //$cena['rozmiar'] =
//$rozmiar = getOneWhere($langPrefix.'rozmiar', "parent_id = '".$cena['rozmiar'] ."'");
// //$cena['image'] = getOneWhere($langPrefix.'images', "sekcja = 'rysunki_techniczne' parent_id = '".$cena['image'] ."'");
//$image = getOneWhere($langPrefix.'images', "sekcja = 'rysunki_techniczne' parent_id = '".$cena['image'] ."'");

foreach ($list['ceny'] as $key => $listValue) {
$temp = getOneWhere($langPrefix.'rozmiar', "id = '".$listValue['rozmiar']."'");
$list['ceny'][$key]['rozmiar'] = $temp['nazwa'];
$temp = getOneWhere($langPrefix.'images', "id = '".$listValue['image']."'");
$list['ceny'][$key]['image'] = $temp['image'];
$list['ceny'][$key]['nazwa_rysunek'] = $temp['nazwa'];
}

$produkt['cena'] = $list['ceny'];
$produkt['cena_count'] = count($produkt['cena']);
$produkt['flashvars']="images=".$produkt['webimage'].";".$produkt['image'].";".$produkt['nazwa'];
if ($produkt['trawa'] == 0 ) {
$produkt['flashvars'].= "&nograss=true";
}
$nextId =array();

foreach ($list['produkty'] as $key => $listValue) {
if($listValue['link_id'] == $id){
$nextId['id'] = $key;
}
}

$nextId['prev'] = $nextId['id'] - 1;
$nextId['next'] = $nextId['id'] + 1;

if ($nextId['prev'] < 0 ){
$nextId['prev'] = $list['produkty'][(count($list['produkty']) - 1)]['link_id'];
}
else {
$nextId['prev'] = $list['produkty'][$nextId['prev']]['link_id'];
}

if (!empty($list['produkty'][$nextId['next']])){
$nextId['next'] = $list['produkty'][$nextId['next']]['link_id'];
}
else {
$nextId['next'] = $list['produkty'][0]['link_id'];
}
}
}
else {
$image = getOneWhere($langPrefix.'images', "sekcja = 'strona_glowna_image' and parent_id = 0");
}

?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 21:54