28, May 2012

how i include a table in multiple sites? - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design  >  HTML & XHTML (Moderator: Meth0d)
Topic: how i include a table in multiple sites?
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: how i include a table in multiple sites?  (Read 1060 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Apr 09, 2011, 02:53:40 pm »

Hello

I have multiple of websites. I want to include an html table in every footer of those sites. The table code is in a file located on another site.
All sites are php.

I want this so that I can modify the table from one file instead of having to modify it mutiple times.

Is that possible ? And how can I do it ?

Give any best idea which is helpful for me.


Thank you.

Regards
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #1 on: Apr 09, 2011, 03:18:59 pm »

I have put the table code in a file datalinks.inc

Then I used the following function:

<?php include("datalinks.inc"); ?>

in every site's footer.

when i do that its not work and i did not know what to do.

what would i do now?

help me
What a dork
*
Posts: 17
102 credits
Members referred : 0


« Reply #2 on: Apr 14, 2011, 05:39:53 pm »

Put table code in one .php file and include that file in footer.
In this if you made any changes in that .php file it will automatically reflect in all pages.
World Wide Whale
***
Posts: 160
974 credits
Members referred : 0


« Reply #3 on: Jun 04, 2011, 05:56:08 am »

Your function <?php include("datalinks.inc"); ?> should work, please check your link. Have you put the link correctly?
Total Zero
*
Posts: 5
42 credits
Members referred : 0


« Reply #4 on: Aug 27, 2011, 01:50:09 pm »

ctually i dont understand ur query
Where are my glasses?
*
Posts: 20
144 credits
Members referred : 0


« Reply #5 on: Aug 28, 2011, 01:17:47 pm »

You can pretend it's part (as in 'a child') of the <div> that it's being loaded into.
Atari ST fan
*
Gender: Male
Posts: 7
42 credits
Members referred : 0



« Reply #6 on: Oct 19, 2011, 10:27:06 am »

As you have many website and want use same table in your all site's footer.
Create a separate footer.php file. This file online contains the code which you want in each site's footer. And upload this file on any of server.
Any include full path in the file as follow.

<?php include("http://www.example.com/footer.php"); ?>

I think this is the things you want.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=11696
Tags : 4 Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design  >  HTML & XHTML (Moderator: Meth0d)
Topic: how i include a table in multiple sites?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:21:39 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

104 Guests, 2 Users online :

10 users online today:




Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.