marquinho-a Posted June 21, 2007 Share Posted June 21, 2007 Good night expensive friends! I have a serious problem, necessary to make one script of book, it functions thus: you insert in the data base the chapters, and later it she has that to catch all the chapters, to see how many pages has and to make the paging, this would be easy, if it was not: - All beginning of chapter has that to be in a new page; - Not to count HTML as character (would be alone boldface, italic and….; - It would have that to accept the image, I thought thus about something: the size of the image is caught, and is calculated which the size of the space that it would occupy (daily pay-she would be defined), and deducts from the amount of text of the page. Ex: in page 15 it has an image of 300x300 = 200 characters, only if it can have 500 characters for page, then this page alone can have more 300; - Not to cut the word (Ex: “this would be the end of pag…”, to leave “this thus would be the end of”, without cutting); - It cannot be weighed therefore, being about books, are great amounts of text, he will be something weighed, it would delay years to process; - How to make this, if the text is not grouped, and yes, separate for insertions in the data base? It forgives the English, I am Brazilian, and I do not know to write very well… I am thankful since already! Quote Link to comment https://forums.phpfreaks.com/topic/56489-system-of-book/ Share on other sites More sharing options...
teng84 Posted June 21, 2007 Share Posted June 21, 2007 are you saying that you want to insert text in the db with the same fields and row partially?? discuss a little more ASTIG!!! Quote Link to comment https://forums.phpfreaks.com/topic/56489-system-of-book/#findComment-279000 Share on other sites More sharing options...
marquinho-a Posted June 21, 2007 Author Share Posted June 21, 2007 I have some inserted chapters in the data base, and necessary the paging with all the registers as if it was an only text. To each new register (chapter), a page of the zero starts. CHAPTER - title - text They understand? Quote Link to comment https://forums.phpfreaks.com/topic/56489-system-of-book/#findComment-279306 Share on other sites More sharing options...
redarrow Posted June 21, 2007 Share Posted June 21, 2007 http://www.phpfreaks.com/tutorial_cat/25/Page-Number--Pagination.php Quote Link to comment https://forums.phpfreaks.com/topic/56489-system-of-book/#findComment-279338 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.