Results 1 to 6 of 6

Thread: How i include a table in multiple sites?

  1. #1

    How i include a table in multiple sites?

    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

    ---------- Post added at 14:21 PM ---------- Previous post was at 14:20 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

  2. #2
    You should be able to do it using an iFrame. Look that up.

    The code you are using will only include a local file.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  3. I try to stay away from iframes, especially if I own both sites. If you are using PHP or Wordpress, you can use a PHP "Include" to include the content on multiple sites. I usually set up a text file with the html code and then call it from other sites. I can then change it once on the text file if I need to make changes and it will be changed on multiple sites.
    Need links? Try AuthorLinks where you can buy or sell links based on Authorship and Klout score. Check out my blog or like me on Facebook.

  4. #4
    Quote Originally Posted by bhartzer View Post
    I try to stay away from iframes, especially if I own both sites. If you are using PHP or Wordpress, you can use a PHP "Include" to include the content on multiple sites. I usually set up a text file with the html code and then call it from other sites. I can then change it once on the text file if I need to make changes and it will be changed on multiple sites.
    With a php "include" file, you'll still need to edit the two different versions of the page. Iframes work better simply because it's duplicating one page within a "frame" and it can pull data off of any page on the world wide web.

    Include files are great for common headers, footers, menus etc., but, from what the OP is describing here, he wants a common html table code in multiple sites.
    Social Bookmarking Service | Directory Submission Service | Link Wheel Service

    Get 20% off on all QualitySubmissions products with the "NETBUILDERS" coupon code.

  5. #5
    iFrames also cannot be read by search engines, so its safe too.

  6. #6
    Yes, if you want to hide the table content from search engines then you can use iframes as well.

Similar Threads

  1. Any good tracking software for multiple sites?
    By DomainMagnate in forum Stats
    Replies: 11
    Last Post: 23 April, 2013, 02:14 AM
  2. Replies: 1
    Last Post: 27 December, 2009, 11:47 AM
  3. Duplicate Content and Multiple sites Issues - From Google Staff
    By thebookmarker in forum Content and Writing
    Replies: 6
    Last Post: 19 October, 2009, 08:09 AM
  4. Replies: 1
    Last Post: 5 March, 2009, 01:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •