Re: [PHP] splitting content from database into pages again

2003-07-31 Thread daniel
function page_content($content,$limit = 10,$page) { $limit=20; $afile = explode("\r\n", $content); $maxline = count($afile); // count existing lines $max = $maxline - 1; $page ? $page = $page : $page = 1; $s=$page+$limit; for ($i=$p

Re: [PHP] splitting content from database into pages again

2003-07-31 Thread daniel
ok this seemed to work using the text paging example replace the file line with this $afile = explode("\r\n", $string); > hi guys regarding my question yesterday here is exactly what i want to > do > > http://www.evilwalrus.com/articles.php?aid=42 > > this is obvioiusly splitting the content up whe