print class content in another page

Hi there,

I’m a complete newbee on PHP and ik have a wish voor my website.
First sorry for my bad english but i’m dutch.

I do have a page overview.php this page contains 10 diverent div sections but one of them is called “ranking”.

And i want that section included in anothor page, but in the way that when the ranking changed in overview.php is also changed in the new page.

Is there anyone outthere who can help me out???

Thanks

Luc.

do you know how to use include and require?

[ol][li]make a new php file and name it ranking.php[/li]
[li]on the overview page cut the div named ranking and placed on ranking.php[/li]
[li]include ranking.php whereever you want or need it[/li][/ol]

eg:
[php]
include(“ranking.php”);
[/php]

lets says your ranking div is like this

ranking.php
[php]

<?php
//conentent
?>

[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service