Okay. So First, Hi phphelp community which I have been browsing for a few hours now. I’m Wolf,
or Justun. Whichever. Anyways I have been looking all around the interwebs for the solution of which I require.
So anyways, I’ve been looking for a way to use php to include data from a specific part of the code. I don’t have any code to show because I need this part to continue. xD
So, the idea is to have a file with a bunch of contents,
Ex:
Hi I’m Data 1</some kind of div>
Hi I’m Data 2</some kind of div>
Hi I’m Data 3</some kind of div>
Hi I’m Data 4</some kind of div>
and include it into another page.
some data here and more data and Hi I’m Data 3</some kind of div> and some more data here.
now this is possible with multiple php files and including them say.
data1.php
data2.php
data3.php
data4.php
and use
here is some data here and more and <?php include 'data3.php' ?> and then we have some more data.
But with a lot of files this becomes really hard to manage. and I’m really stuck on this.
So if anyone had any way to point me in the direction I should be going this would be great and an example would be perfect too.