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
How can I make links Dynamic? like index.php, help.php, photos.php, etc.,
Old 09-15-2008, 08:30 PM How can I make links Dynamic? like index.php, help.php, photos.php, etc.,
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
I am working on my www.pokerhungry.com website and on the left hand side there are a bunch of .html links. The problem I am having is, each link I have to manually update each link on every single page.

In the long run I would like to have at least 30 links on the left hand side, so I was wondering if someone can teach me how to make the links dynamic which means I only have to save one menu.php file with all the links on it.

Can anyone help me?

Thank you very much.
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
 
Register now for full access!
Old 09-15-2008, 09:04 PM Re: How can I make links Dynamic? like index.php, help.php, photos.php, etc.,
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Just cut out the code for your sidebar and save it in a seperate file (menu.php), and then whenever you need to add it to a page, in place of where the code would be just add
PHP Code:
<?php include('menu.php'?>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 09-16-2008, 03:34 AM Re: How can I make links Dynamic? like index.php, help.php, photos.php, etc.,
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
the same way as you do in this thread -> http://www.webmaster-talk.com/html-f...inks-only.html
or this thread -> http://www.webmaster-talk.com/php-fo...inks-like.html

or this thread -> http://www.webmaster-talk.com/html-f...oker-site.html

So how many threads do we need on the same subject??

Now IF your hosting doesn't include PHP or SSI then TELL US and we can tell you to get a host that does.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-17-2008, 11:57 PM Re: How can I make links Dynamic? like index.php, help.php, photos.php, etc.,
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
Can someone help me with step by step instructions because I am having some difficulties really doing it.
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
Reply     « Reply to How can I make links Dynamic? like index.php, help.php, photos.php, etc.,
 

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.32229 seconds with 12 queries