I'm using PHP/mySQL to create a content management system. Most features are working, but I'm struggling with one thing:
When entering article text into the database I use [FONT=courier new]<pr>Title goes here</pr>[/FONT] to signify the start of a new page and its title for multi-page articles.
I then use the [FONT=courier new]split[/FONT] command to split the text at <pr> and place the chunks into an array. This is working well - I have separate pages accessible using &page=x in the URL.
I now need to go through this array and strip off the text before the </pr> tag and place it into another array (and preferably remove the </pr> tag too) - thus creating an array containing the page titles for each page of text.
Can anyone help me out with this?
Much appreciated
Mat