FridayRain Posted September 23, 2007 Author Share Posted September 23, 2007 Nothing? Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-353611 Share on other sites More sharing options...
FridayRain Posted September 24, 2007 Author Share Posted September 24, 2007 Is it even possible to remove the space above here the text starts on subsequent pages? I realize I could put a space above the text on the first page, but I don't want that big of a gap between the title and the text. Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-354291 Share on other sites More sharing options...
FridayRain Posted September 25, 2007 Author Share Posted September 25, 2007 One more bump? Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-354843 Share on other sites More sharing options...
HuggieBear Posted September 25, 2007 Share Posted September 25, 2007 Try ltrim(). Â Regards Huggie Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-354877 Share on other sites More sharing options...
FridayRain Posted September 25, 2007 Author Share Posted September 25, 2007 Try it where exactly? Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-354918 Share on other sites More sharing options...
HuggieBear Posted September 25, 2007 Share Posted September 25, 2007 Try it where exactly?  Did you read the link I sent? Try it around your $article text. It will remove newlines from the beginning of your string.  Regards Huggie Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-354922 Share on other sites More sharing options...
FridayRain Posted September 25, 2007 Author Share Posted September 25, 2007 Ha. It's early and I'm at work. Didn't notice it was linked. Thanks for the help. Can't wait to get home and try it out. Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-354927 Share on other sites More sharing options...
FridayRain Posted October 1, 2007 Author Share Posted October 1, 2007 Is it possible to use with the nl2br function? Something like: Â echo ltrim(nl2br(article)); Â That syntax doesn't remove the extra space, but if I take out NL2BR, it does. Can I keep it inline like the above, or do I have to put the NL2BR'd string into a variable and then LTRIM it? Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-358761 Share on other sites More sharing options...
FridayRain Posted October 1, 2007 Author Share Posted October 1, 2007 I also have to prevent people from being able to type in a page number that doesn't exist for a piece, so when they do, they get a message saying the page doesn't exist or something, instead of seeing their current page and navigation links. Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-359325 Share on other sites More sharing options...
FridayRain Posted October 2, 2007 Author Share Posted October 2, 2007 Anything? Quote Link to comment https://forums.phpfreaks.com/topic/66930-traverse-and-insert-page-breaks/page/2/#findComment-360097 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.