FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 



PHP includes

 
Post new topic   Reply to topic    [TweakNews.net Forum] Forum Index -> PHP ,ASP ,MYSQL, HTML, DHTML
View previous topic :: View next topic  
Author Message
Yoshida
UberTweaker


Joined: 24 Dec 2003
Posts: 1219

PostPosted: Fri May 06, 2005 10:11 am    Post subject: PHP includes Reply with quote

Okay im redesigning my site and im using php now. On my index.php site i have my include for my fusion news script which i want to load when you go to index.php.

My question is, i have other links on my index.php page like about me, etc etc.
How do i link those links, so they load in place of my fusion news php include on my index.php?

make sense?
www.kaio-ken.com
Back to top
View user's profile Send private message
Google
Sponsor





PostPosted: Fri May 06, 2005 10:11 am    Post subject: Advertisement

Back to top
PolarPyro
UberTweaker


Joined: 10 Oct 2003
Posts: 1101
Location: snoresville usa

PostPosted: Fri May 06, 2005 6:57 pm    Post subject: Reply with quote

You mean so that they dont goto a whole dif. page? That would be an iframe i think.... im really not sure tho... burrbit
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Zerebro
TweakNOOB


Joined: 25 Mar 2006
Posts: 39
Location: Iceland

PostPosted: Sat Mar 25, 2006 9:59 pm    Post subject: Reply with quote

Think I might be able to help yah.
Insert this code into your main page.
Code:
<?PHP
   if(isset($_GET['page']))                     #If the page is set it will load
      include($_GET['page'].".php");      # the "page".php value into your
   else                                                      # page.
      include("news.php");                     # Loads news.php as default
?>


To change pages you simply use the following code.
Code:
<a href="?page=twit">Twit</a>

This will for eg. load twit.php into your selected page.

Hope this helps Good Luck
_________________
CM Stacker - ABIT Fatal1ty AN8 Sli - AMD64 3500+ - 1GB PC-3200 DUAL - eVGA GeForce7800GT - SB Fatal1ty - 2x200GB 1x250GB Segate.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    [TweakNews.net Forum] Forum Index -> PHP ,ASP ,MYSQL, HTML, DHTML All times are GMT - 5 Hours
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 phpBB3 ©