Jump to content

Preview


pocklove

Recommended Posts

Hi,

 

I have a table I want to display, say a sports league table. On the 'tables page' there is the full table for example

 

1. Team 1 5-0

2. Team 2 4-1

3. Team 3 4-1

4. My Team 3-2

5. Team 4 3-2

6. Team 5 1-4

 

etc etc

 

I want to show a preview of this on the home page so it only shows My team, and the teams directly above and directly below, so, example

 

3. Team 3 4-1

4. My Team 3-2

5. Team 4 3-2

 

Question: Can I link the preview on the home page to the full table on the 'tables' page so I dont have to update both pages every time the league changes?

I just want to have to update the full table once and then the preview feed off that.

 

Hope that makes sense.

 

Cheers.

Link to comment
Share on other sites

Is it possible to use PHP include to only include part of another page? (ie the part of the table I want to show as a preview)

 

If I did it that way wouldn't I have to update the 'tables page' (That includes the whole table) and the PHP file (That would include the section I need to preview), so that would mean updating two files?

 

In which case I may as well update the 'tables page' and the home page.

 

Unless there is a way to use PHP include to only include part of a selected page???

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...