1. Insert news
FCKEditor is a very popular plug-and-play WEB editor that supports ASP, PHP, Java and other languages. What I want to introduce here is to use the "insert page break" function of the editor to realize page refresh-free paging.
When editing news, insert page breaks at the paragraphs where page breaks are needed and save.
2. Read news
When reading the news field, the news field data is processed through the PHP paging function. The code is as follows:
PHP code
function pageBreak($content)
{
$content = $content;
$pattern = "/
if ($count > 1 ) {
$outStr = "
$outStr .= "