bukaida
In the zone
The document is inserted as a text file in the database. the table structure is
id(number) Title(Text) Body(Long Text)
The body may be a 500 page book in text format.
The content in the text file is written (continuously) as
-(-p- 1 )-
content of page 1
-(-p- 2 )-
content of page 2
---so on
Now I need to store this data as individual page in another table automatically which has the following structure--
id ( may be FK from previous table)
content (page wise text content, automatically extracted)
page number( automatically extracted)
I am in total blank how to generate the second table from the first one. I am using PHP 5 with Mysql 5 and Apache 2.2.
Any suggestion is gracefully accepted.
P.S-- The actual page numbers are unicode non-english numbers which are unique and never repeated inside the body of the text.
id(number) Title(Text) Body(Long Text)
The body may be a 500 page book in text format.
The content in the text file is written (continuously) as
-(-p- 1 )-
content of page 1
-(-p- 2 )-
content of page 2
---so on
Now I need to store this data as individual page in another table automatically which has the following structure--
id ( may be FK from previous table)
content (page wise text content, automatically extracted)
page number( automatically extracted)
I am in total blank how to generate the second table from the first one. I am using PHP 5 with Mysql 5 and Apache 2.2.
Any suggestion is gracefully accepted.
P.S-- The actual page numbers are unicode non-english numbers which are unique and never repeated inside the body of the text.