2 PHP questions

Soldato
Joined
18 Oct 2002
Posts
7,639
Location
Sutton Coldfield, Birmingham
I'm working on a php news script but am having trouble coding a few bits of it, the first thing is..

Say a news post has 1000 words, this will be too many to show on the front page so I want to give the user the ability to add a tag which will split the news post into two sections, allowing me to display the first section on the front page and then the reader can click a 'read more' link to view the rest. How can I do this?

Secondly, also on the front page I want some small news boxes which show the latest news headlines aswell as the first 20 words of each news post, I don't want the user to have to use a tag for this. I'd like PHP to select the first 20 words and print them to the screen, then stop. I assume you have to use arrays and strings for this, can someone give me some advice?

Thanks :)
 
Back
Top Bottom