Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Hi all.... what is " ? "
Old 04-11-2005, 01:03 AM Hi all.... what is " ? "
naoshad's Avatar
Novice Talker

Posts: 8
Trades: 0
Hello everybody,

I am trying to learn php. but i don't understand one thing. why this type of link mean:

http://www.webmaster-talk.com/usercp.php?
http://www.webmaster-talk.com/member.php?&u=13247


if anybody help me and tell me in details then that will be very helpful for me.
__________________
Thanks,
Naoshad

---------------------------------------------------------------------------
Nothing will work unless you do.
Maya Angelou
naoshad is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-11-2005, 03:27 AM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Trades: 1
The question mark allows data to be passed to that php file.

http://www.webmaster-talk.com/usercp.php?:

This will do nothing as there is no data after the '?', but it is there for future url's where there would be data to pass.

http://www.webmaster-talk.com/member.php?&u=13247

This one holds the data '13247' as 'u'. Within the member.php file, there will be code that looks for any data defined as 'u' and if found it will then perform a different function from normal.

So, we could have the following in member.php:

PHP Code:
$user $_GET['u'];

if (
$user == '13247')

     { 
$rank 'member'; }

else
     { 
$rank 'guest'; } 
Hope this helps,

Steve.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Reply     « Reply to Hi all.... what is " ? "
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10172 seconds with 12 queries