Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-24-2004, 10:59 AM
keiran=NUK=
Unregistered

Posts: n/a

a bit of help please

Hi again. I've been learning php and have done some tutorials. One thing im not sure about and cant find anything on it is, when you look up for example your simple squad site. When you click on a page instead of having /downloads.php or /downloads.htm it has something else. How does that piece of code work ??

Thanks
Keiran
Reply With Quote
  #2  
Old 08-27-2004, 11:53 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

index.php?view=roster

$view=$_GET['view'];

//View = roster here. So if /path/to/files/content_roster.php exists it will include content_roster.php.

If($view=="") {

include("/path/to/files/content_main.php");

} Elseif(file_exists("/path/to/files/content_".$view.".php)) {

include("/path/to/files/content_".$view.".php);

} Else {

include("/path/to/files/content_main.php");

}
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 08-30-2004, 08:50 AM
keiran=NUK=
Unregistered

Posts: n/a

thank you
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello, I am looking for a bit of help :) animosity Tech Support 8 07-31-2006 10:29 AM
A little bit of help please Gene starwind Delta Force 10 07-12-2005 05:06 PM
a bit more has been done... NaughtyPerry Sigs and Graphics 0 01-03-2005 04:47 PM
bit different Steve Sigs and Graphics 10 08-17-2003 02:05 PM


All times are GMT -5. The time now is 10:16 PM.




Powered by vBulletin®