![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 278 Pomógł: 0 Dołączył: 21.11.2003 Ostrzeżenie: (0%) ![]() ![]() |
Moge to jakos latwiej zapisac? tak abym nie musiał do kazdego linka pisac tego jeszcze raz
Kod if ($k=="redakcja")
{ include("modules/redakcja/index.php"); } if ($k=="tuning") { include("modules/tuning/menu.php"); (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 217 Pomógł: 0 Dołączył: 5.10.2003 Skąd: Londyn / UK Ostrzeżenie: (0%) ![]() ![]() |
Cytat to jak mam to zrobic?(IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Jesli admin prosi o edycje tego posta to wypadaloby to zrobic jesli sie chce pomocy. Zamiast if zastosuj lepiej case [php:1:64d20572d6]<?php switch($k) { case 'redakcja': include('modules/redakcja/index.php'); break; case 'redakcja': include('modules/tuning/menu.php'); break; default: include('index.php'); // domysla strona break; } ?>[/php:1:64d20572d6] |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 14:55 |