#1
|
||
|
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 |
#2
|
||
|
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 |
#3
|
||
|
thank you
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |