diff --git a/control-files/00_ids_done.txt b/control-files/00_ids_done.txt index f11c82a..da2d398 100755 --- a/control-files/00_ids_done.txt +++ b/control-files/00_ids_done.txt @@ -1 +1 @@ -9 \ No newline at end of file +14 \ No newline at end of file diff --git a/control-files/00_news_done.txt b/control-files/00_news_done.txt index b64d3cc..fb8efeb 100755 --- a/control-files/00_news_done.txt +++ b/control-files/00_news_done.txt @@ -1 +1 @@ - ./news/1.html ./news/2.html ./news/3.html ./news/4.html ./news/5.html ./news/6.html ./news/7.html ./news/8.html ./news/9.html \ No newline at end of file + ./news/1.html ./news/2.html ./news/3.html ./news/4.html ./news/5.html ./news/6.html ./news/7.html ./news/8.html ./news/9.html ./news/10.html ./news/11.html ./news/12.html ./news/13.html ./news/14.html \ No newline at end of file diff --git a/index.php b/index.php index 665b149..784a379 100755 --- a/index.php +++ b/index.php @@ -29,11 +29,13 @@ require 'news_logic.php'; - check_news(); + $actual_page = 1; $news_per_page = 10; - $result = bring_the_news_back_home(1, $news_per_page); + check_news($news_per_page, 'mySQLconnect.php'); + + $result = bring_the_news_back_home($actual_page, $news_per_page, 'mySQLconnect.php'); foreach ($result as $news ) { $id = $news[0]; @@ -53,19 +55,41 @@ "; - } + + } ?> -
-