Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Zmienne w adresie, moze to juz bylo ale nie moge znaleść
Noctovizor
post
Post #1





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

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


Więc tak mam strone w php i jest mesnu a Później menu drugie trzecie i czwarte wygląda to tak:

+-------------+
|Menu |
+-------------+
| Artykuly | index.php?co=Artykuly to mam
| Info | index.php?co=info to mam
+-------------+

+-------------+
|SC |
+-------------+
| Artykuly | index.php?game=SC&co=Artykuly nie mam (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
| Solucje | index.php?game=SC&co=Solucja&mission=1 nie mam (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
+-------------+

+-------------+
|SC:PT |
+-------------+
| Artykuly | index.php?game=SC:PT&co=Artykuly nie mam (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
| Solucje | index.php?game=SC&co=Solucja&mission=1 nie mam (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
+-------------+


+-------------+
|SC:CT |
+-------------+
| Artykuly | index.php?game=SC:CT&co=Artykuly nie mam (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
| Solucje | index.php?game=SC:CT&co=Solucja&mission=1 nie mam (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
+-------------+

i chce zeby adresy były takie: opis wyzej

z gory dzieki
Go to the top of the page
+Quote Post
AxZx
post
Post #2





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 55
Dołączył: 1.03.2005
Skąd: śląsk

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


napisz w czym problem
Go to the top of the page
+Quote Post
Noctovizor
post
Post #3





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

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


Chodzi o to jak zrobić ścieżke adresu z & i drugą zmienna

index.php?co=Info

to mam tak

if ($co=='Info')
{
include'info.php';

A jak próbóje dodoać & i coś a nim wpisać to ise nie da (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) (wyskakuje errror php)
Go to the top of the page
+Quote Post
nospor
post
Post #4





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




oj na rzecznika prasowego to się nie nadajesz (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) (taki żarcik - nie gniewaj się).
Cięzko tłumaczysz o co ci chodzi.

  1. <?php
  2.  
  3. if ($co=='Info') 
  4. {
  5. include'info.php';
  6. }
  7. else
  8. if ($game==&#092;"SC\" && $co=='Artykuly')
  9. {
  10. //...
  11. }
  12. //...
  13.  
  14. ?>
O to ci chodzi? A jaki error ci rzuca?
Go to the top of the page
+Quote Post
Noctovizor
post
Post #5





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

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


ja nie tak raobiłem bo nie wiedziałem gdzie moge dać inne zmienne.

Wielkie dzięki


Error jet taki zwykly

ze cos tam po angielsku pokazuje linijke w której jest źle

Ten post edytował Noctovizor 3.08.2005, 09:58:49
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 24.08.2025 - 21:50