hey everyone 
I have a little news section on my website, which functions alot like a guestbook (except its all password protected).
To add the data i simply do...
<?php
$entry = $_POST['entry'];
$file = "text.txt";
$do = fopen($file, "a") or die("Error");
$bytes = fwrite($do, $entry);
echo "Data successfully added. ".$bytes." bytes added.";
?>
When I then call upon that data and display it all however, the most recent news is displayed below the older entries. How can I reverse the order so that the newer posts come above the old ones?
Thanks
Jay Vincent

I have a little news section on my website, which functions alot like a guestbook (except its all password protected).
To add the data i simply do...
<?php
$entry = $_POST['entry'];
$file = "text.txt";
$do = fopen($file, "a") or die("Error");
$bytes = fwrite($do, $entry);
echo "Data successfully added. ".$bytes." bytes added.";
?>
When I then call upon that data and display it all however, the most recent news is displayed below the older entries. How can I reverse the order so that the newer posts come above the old ones?
Thanks
Jay Vincent

Comment