fuston05 0 Junior Poster in Training

I am making a php calendar script. I want to to store events on separate text files. Beside my calendar is an iframe which is where it will read the events. I cant figure out how to make php read just the portion that is the event, not the code on the page too. heres the "day_1.php that is linked to the 1st of the month. I am new to programming so..

<h1><?php echo $_GET["day"] . "</h1>"; ?><br /><h3>Today's Events:</h3>
<?php $event= "This where content to remember will be added..asd asd  asdas fa sd etc..." ;?>
<p><?php echo $event;  ?></p>

<div id= "add_content"
    <a href= "add_content.php"><span class= "underline">Add Content</span></a>
</div>

so if i use fopen and read, it reads all the code back to me as well. any advise?
I know i could use mysql, but i want this to be php, and text files only for now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.