Añadido aspecto de background dependiente de la cantidad de cartas

This commit is contained in:
2021-07-18 21:09:43 -03:00
parent db83233cf7
commit f8393623c2
4 changed files with 27 additions and 2 deletions

View File

@@ -34,9 +34,15 @@
$news_per_page = 10;
check_news($news_per_page, 'mySQLconnect.php');
$result = bring_the_news_back_home($actual_page, $news_per_page, 'mySQLconnect.php');
if (count($result) <= 4) {
echo '<style>html {
background: red;
}</style>';
}
foreach ($result as $news ) {
$id = $news[0];
$title = $news[1];
@@ -66,6 +72,7 @@
$pages = glob('./pages/pages-*.php');
$c = 0;
foreach($pages as $page) {
$c++;

View File

@@ -32,6 +32,12 @@
$news_per_page = 10;
$result = bring_the_news_back_home($actual_page, $news_per_page, "../mySQLconnect.php");
if (count($result) <= 3) {
echo "<style>html {
background: rgb(157,211,255);
}</style>";
}

View File

@@ -32,6 +32,12 @@
$news_per_page = 10;
$result = bring_the_news_back_home($actual_page, $news_per_page, "../mySQLconnect.php");
if (count($result) <= 3) {
echo "<style>html {
background: rgb(157,211,255);
}</style>";
}

View File

@@ -16,6 +16,12 @@ function php_code($num_page, $news_per_page){
'
$result = bring_the_news_back_home($actual_page, $news_per_page, "../mySQLconnect.php");
if (count($result) <= 3) {
echo "<style>html {
background: rgb(157,211,255);
}</style>";
}
',