What i am wanting my code to do now is that when i submit a new post it adds it to the new.txt file and takes the previous post and adds it to the oldnews.txt file (so that the blog list grows there)
My code for the addblog.php is -
Code: Select all
<?php
if ($message != '')
{
$newRow = '<div class="e;viewGuestbook"e;><b>' . ($subject) . ' - ' .
($date) . '</b> ї' . ($time) . '] ' . '<br>' . ($message) . '<br>' . '<br>' . '<br>' .
'</div>';
$oldRows = join ('', file ('news.txt') );
$fileName = fopen ('news.txt', 'w');
fputs ($fileName, $newRow . chr(13) . chr(10) . $oldRows);
fclose ($fileName);
}
include ("e;http://eric.madashatters.com/infusion/index.php"e;);
?>Help would be great
Thanks
Eric