Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
swich petlja
Author Message
dinkog Offline
Novi korisnik
*

Posts: 6
Joined: Nov 2007
Reputation: 0
Post: #1
swich petlja
<?php
switch ($prikaz) {
default:
include "inc/index.inc";
break;

case "link1":
include "inc/link1.inc";
break;


case "link2":
include "inc/link2.inc";
break;


case "link3":
include "inc/link3.inc";
break;

}
?>






što nevalja?
ovo bi bio izbornik a iznad sadrzaj

<br><a href="./">Index</a><br><br>

<a href="index.php?prikaz=link1">Link 1</a><br><br>

<a href="index.php?prikaz=link2">Link 2</a><br><br>

<a href="index.php?prikaz=link3">Link 3</a><br><br>

ovo bi includo u index

<?php include("inc/izbornik.inc"); ?>
<?php include("inc/sadrzaj.inc"); ?>

[hurmash1ca: Upozorenje, procitaj pravila foruma. Vise mi je dosadilo konstantno iste stvari pisati, koristite EDIT umjesto double-postanja!]
20-11-2007 08:10 PM
Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,379
Joined: Feb 2006
Post: #2
RE: swich petlja
Kakvu grešku javlja?

Pravila foruma | Twitter - Facebook - Google+ |
20-11-2007 08:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dinkog Offline
Novi korisnik
*

Posts: 6
Joined: Nov 2007
Reputation: 0
Post: #3
RE: swich petlja
UOPĆE NE RADI nekužim zašto...
21-11-2007 02:08 AM
Find all posts by this user Quote this message in a reply
hamferus Offline
Forumaš
***

Posts: 350
Joined: Jun 2006
Reputation: 8
Post: #4
RE: swich petlja
Gogy te pito kad otvoriš taj file u IE-u, FF-u ili operi koju grešku ti daje? Jer koliko sam ja upućen u php čim nekaj neradi dobiš grešku.

PHOTO - http://www.hamferus.com
VIDEO - http://www.metacafe.com/f/channels/hamferus/
RC WORLD - http://rcfanatic.blogspot.com
FLASH TUTORIJALI - http://blog.hamferus.com
21-11-2007 12:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,379
Joined: Feb 2006
Post: #5
RE: swich petlja
Ne mora bit al uglavnom bude neka greška... Daj pojasni mi to malo kak se ništa ne dogodi? Bijela stranica ili što?

Pravila foruma | Twitter - Facebook - Google+ |
21-11-2007 01:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dinkog Offline
Novi korisnik
*

Posts: 6
Joined: Nov 2007
Reputation: 0
Post: #6
RE: swich petlja
ništa.. klikam linkove ali se sadržaj ne mjenja.. nikakvu grešku nejavlja..
21-11-2007 05:18 PM
Find all posts by this user Quote this message in a reply
stefo Offline
Forumaš
***

Posts: 443
Joined: Jun 2006
Reputation: 3
Post: #7
RE: swich petlja
ma znam ja sta ne valja ali jednostavno forum odbija da prikaze odgovor sa popravljenim kodom
nisi definisao varijablu prikaz na pocetku koda

Kako kokoshka abortira? Snese jaje na beton.

http://www.stefosimple.co.nr - nekad bilo, sad se spominjalo :(
21-11-2007 08:06 PM
Find all posts by this user Quote this message in a reply
dinkog Offline
Novi korisnik
*

Posts: 6
Joined: Nov 2007
Reputation: 0
Post: #8
RE: swich petlja
ajd pošalji na dinkog@net.hr
21-11-2007 08:40 PM
Find all posts by this user Quote this message in a reply
Len0 Offline
Forumaš
***

Posts: 303
Joined: Mar 2007
Reputation: 3
Post: #9
RE: swich petlja
Kaze ti da nisi definisao(deklarirao) varijablu prikaz.Znaci nemozes nesto koristiti sto nepostoji.
Ne bih da pametujem, ovo samo iz znanja iz C++, nemojte me sad kritikovati.

["hip","hip"]
(hip hip array!)
21-11-2007 08:46 PM
Find all posts by this user Quote this message in a reply
stefo Offline
Forumaš
***

Posts: 443
Joined: Jun 2006
Reputation: 3
Post: #10
RE: swich petlja
Pa upravu si Len0

Kako kokoshka abortira? Snese jaje na beton.

http://www.stefosimple.co.nr - nekad bilo, sad se spominjalo :(
21-11-2007 09:01 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)