diff --git a/blog/css/style.css b/blog/css/style.css index f6b90bc..66acaf5 100644 --- a/blog/css/style.css +++ b/blog/css/style.css @@ -148,12 +148,14 @@ a:active { background-color: transparent; } -.foto img{ +.foto1 img{ width:360px; height:360px; -background-color:#ccc; } +.foto img{ +background-color:#ccc; +} .fill img{ object-fit:fill; diff --git a/blog/index.php b/blog/index.php index ee2720d..4cb1b44 100644 --- a/blog/index.php +++ b/blog/index.php @@ -75,7 +75,7 @@ if ($sql = $mysqli->prepare("SELECT * FROM user WHERE user_id = 2 ")) -
+

$username

@@ -122,8 +122,8 @@ if ($sql = $mysqli->prepare("SELECT * FROM post ORDER BY data_dodania")) $sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date); while ($sql->fetch()) { - echo "
-
+ echo "
+
@@ -133,8 +133,7 @@ if ($sql = $mysqli->prepare("SELECT * FROM post ORDER BY data_dodania"))
-
-

$title

+

$title

"; } $sql->close(); @@ -144,14 +143,6 @@ else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); $mysqli->close(); ?> - - - - - - - -