Navigating through A text field (page 1 page 2...)
Posted: Sun May 11, 2003 11:21 am
How you people do the navigation in a text field.
I have a table that have records with a large text field (stored in a DB). I want to make some kind of pagination (page 1, next ->) with that field. --(in other words, i want to navigato through the textfield in ONE record)
My question is... how do you do that ??? (in the insertion). i found 2 approaches:
1. i insert many records for the same article (one record for each page) in the DB, and then i implement som kind of next_previous script. -- i dont think its the best solution
2. i insert a tag in the text field like: [Page x]. When i want to show the page i use some var in the url (or post) with the page id, and then i parse it.
any comments? how do you do that??
I have a table that have records with a large text field (stored in a DB). I want to make some kind of pagination (page 1, next ->) with that field. --(in other words, i want to navigato through the textfield in ONE record)
My question is... how do you do that ??? (in the insertion). i found 2 approaches:
1. i insert many records for the same article (one record for each page) in the DB, and then i implement som kind of next_previous script. -- i dont think its the best solution
2. i insert a tag in the text field like: [Page x]. When i want to show the page i use some var in the url (or post) with the page id, and then i parse it.
any comments? how do you do that??