Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP] Archive Are School Newspaper

Junior Spellweaver
Joined
Jul 6, 2008
Messages
173
Reaction score
2
Hi, im on are schools newpaper page, and i want to know a way to archive the articles they post. Please help. I already have a way of them posting a article using a form and fwrite in php.

:pain:
 
Custom Title Activated
Loyal Member
Joined
Jun 28, 2007
Messages
2,986
Reaction score
3
Re: Archive Are School Newspaper

What are you trying to do? I can't understand your English honestly...

Do you try to read and store articles posted on a certain site? Simply make a HTML interpreter...and a database.
 
Junior Spellweaver
Joined
Jul 6, 2008
Messages
173
Reaction score
2
Sorry, Lol

But what i want to do is get a way to archive the posts in a blog type thing i made for the school newspaper.

Well im useing a login posting sessions for only teachers to post. Then use fwrite to a txt files. Then i use the include function to post the words on the article page.

But does anybody have a clue how to keep each post archived or in its on file? so people can reffeer back to them.

Thanks :2gunsfiring_v1:
 
Experienced Elementalist
Joined
Apr 15, 2008
Messages
256
Reaction score
0
Archive? as in viewing all the topics/news ever posted?
use a database, not .txt files
PHP:
<?php
//do this after connecting to the database
$archive=mysql_query("SELECT * FROM news");
while($data=mysql_fetch_assoc($archive)){
$post=$data['post'];//get what they posted
$id=$data['id'];//gets the link
echo("<a href='$id'>$post</a><br>");
//this will echo everything they have ever posted into a link. ?>
 
Junior Spellweaver
Joined
Jul 6, 2008
Messages
173
Reaction score
2
Can you tell me how to put the forms text into the database?
 
Junior Spellweaver
Joined
Dec 2, 2006
Messages
198
Reaction score
0
honestly, wordpress or stuff like cutephp would be your best bet. its great for putting articles in too.
wordpress uses mysql and php
cutephp uses only php so if you have a mysql deficiency, this is great.
 
Back
Top