Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
kveri...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
boby-s



Joined: 10 Apr 2004
Posts: 222
Location: Samobor< >Zagreb

PostPosted: 18.02.2005 18:26    Post subject: kveri... Add user to your forum ignore list Reply with quote

jel mi može objasnit te kverije? npr.(http://sajt.com/index.php?NESTO)ili link kakav na tut.poželjno na
hrvatskom.

thx svima!
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 18.02.2005 19:55    Post subject: Add user to your forum ignore list Reply with quote

primjer koji si ti napisao ne opisuje 'kverije' (queries su upiti za bazu podataka) nego način prenošenja varijabli URL linijom, a.k.a. GET metoda

princip je jednostavan, upitnik označuje početak niza varijabli, a one se navode kao 'name=value' parovi i odvojeni su ampersandom:

Code:
sajt.com/index.php?user=boby&id=1234&lang=en


što će prenijeti varijable user, id i lang sa njihovim vrijednostima.

Prenijeti u što? Pa u što god želiš Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
_butch



Joined: 10 Sep 2003
Posts: 870
Location: Maichno, Krlovc

PostPosted: 18.02.2005 20:04    Post subject: Add user to your forum ignore list Reply with quote

To ti nije nista drugo nego varijabla koju prenosis preko URL-a.

http://josip.com/index.php?volim=piva

Kako doci do vrijednosti varijable volim ?
Nju prihvacas Smile (uh izraza) sa superglobal-om $_GET.

dakle:
Code:

$volim = $_GET['volim'];

echo $volim
// Echo-a piva


Sada bi htio imati vise varijabli u url-u? Lagano, samo ih razdvajas sa &
http://josip.com/index.php?volim=piva&mrzim=magacin&mjesto=wc itd..

Knock ur self out.
Ovo ti je laganini

_________________
FRENCH GUARD: No chance, English bed-wetting types.
I burst my pimples at you and call your door-opening request a silly thing, you tiny-brained wipers of other people's bottoms!
Flikrac
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
boby-s



Joined: 10 Apr 2004
Posts: 222
Location: Samobor< >Zagreb

PostPosted: 22.02.2005 22:38    Post subject: Add user to your forum ignore list Reply with quote

recimo da tako radim Navigaciju
i idem
http://sajt.com/index.php?kud=jedan
http://sajt.com/index.php?kud=dva
http://sajt.com/index.php?kud=tri
...

i onda moram raditi

if kud==1 then...

if kud==2 ...

ili postoji kakav brži način?
Back to top
View user's profile Send private message
_butch



Joined: 10 Sep 2003
Posts: 870
Location: Maichno, Krlovc

PostPosted: 23.02.2005 00:12    Post subject: Add user to your forum ignore list Reply with quote

Bilo je topica sa time,al radis sa switche:

Code:

<?php

$page = $_GET['page'];

switch ($page) {
default:
case 'index':
 // pa sto ovdje ide
break;

case 'forum':

break;

}


?>

_________________
FRENCH GUARD: No chance, English bed-wetting types.
I burst my pimples at you and call your door-opening request a silly thing, you tiny-brained wipers of other people's bottoms!
Flikrac
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
boby-s



Joined: 10 Apr 2004
Posts: 222
Location: Samobor< >Zagreb

PostPosted: 23.02.2005 10:23    Post subject: Add user to your forum ignore list Reply with quote

aha.kužim sad.hvala puno Wink
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group