Reply to Re: Need help breaking up text for multiple pages

Your name:

Reply:


Posted by Gerard Matthew on 04/27/06 05:12

I'm a bit confused on the purpose of

$page = $page -1;

Aren't we moving from page 1 to page N? Shouldn't that be a $page++?
Anyways...

You mentioned you wanted breaks after each paragraph. I'm how that
that's what you else should look like in order to accomplish this.

}else{

$story = wordwrap($story,460,"*#^");
$story = explode ("*#^", $story);
$parts1 = $story[0];
$count = count($story);
$parts2="<BR>"; //inserted break here
for ($i=1; $i<$count; $i++){
$parts2 .=$story[$i];
$parts2 .="<BR>";//inserted break here
}

Could you also provide a sample of what's in your database. So as i
could understand what's being worked with and what format the data is
in.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация