', '
')); @@ -96,5 +94,22 @@ function create_entry_in_DB($news_unique, $page, $author) { } +function bring_the_news_back_home($actual_page, $news_per_page) { + require './mySQLconnect.php'; + + $frist_calc = $actual_page * $news_per_page; + $second_calc = ($actual_page * $news_per_page) - $news_per_page; + + $prepared_query = $mySQLconnect -> prepare("select title, frist_paragraph, icon_route from noticias where id < ? and id > ?"); + $prepared_query -> bindParam(1, $frist_calc, PDO::PARAM_INT); + $prepared_query -> bindParam(2, $second_calc, PDO::PARAM_INT); + //$prepared_query -> execute(array($actual_page * 10, $actual_page * 10 - 10)); + + $prepared_query -> execute(); + + $return = $prepared_query -> fetchAll(); + + return $return; +} ?> \ No newline at end of file diff --git a/style.css b/style.css index 4b9792c..b4c61ff 100755 --- a/style.css +++ b/style.css @@ -90,7 +90,7 @@ header { .card h3 { font-family: 'Times New Roman', Times, serif; font-weight: lighter; - font-size: 12pt; + font-size: 12.5pt; color: #999999; }