diff --git a/admin-zone/index.php b/admin-zone/index.php index 0c0761a..d8e7811 100644 --- a/admin-zone/index.php +++ b/admin-zone/index.php @@ -70,7 +70,7 @@ if ($sql = $mysqli->prepare("SELECT * FROM post WHERE blog_id IN (SELECT user_i - + Edytuj diff --git a/blog-post/blog.php b/blog-post/blog.php index a40c05f..54c2f26 100644 --- a/blog-post/blog.php +++ b/blog-post/blog.php @@ -109,7 +109,7 @@ else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." ); $trash = ''; -if ($sql = $mysqli->prepare("SELECT * FROM post WHERE blog_id=$user_id ORDER BY data_dodania")) +if ($sql = $mysqli->prepare("SELECT * FROM post WHERE blog_id=$user_id ORDER BY data_dodania DESC")) { $checkIfHasPost = $mysqli->query("SELECT * FROM post WHERE blog_id=$user_id"); if ($checkIfHasPost) { @@ -136,7 +136,7 @@ if ($sql = $mysqli->prepare("SELECT * FROM post WHERE blog_id=$user_id ORDER BY
- \ No newline at end of file diff --git a/blog-post/post.php b/blog-post/post.php index 068a058..226982f 100644 --- a/blog-post/post.php +++ b/blog-post/post.php @@ -51,7 +51,7 @@ $sql->close();
@@ -117,7 +117,7 @@ if ($sql = $mysqli->prepare("SELECT * FROM post WHERE post_id =$post"))

-

+


@@ -139,7 +139,7 @@ else{

-

+


@@ -164,7 +164,7 @@ else{
Średnia ocena: -
+
diff --git a/index.html b/index.html deleted file mode 100644 index 3cf750a..0000000 --- a/index.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - Projekt blogowy - - - - - - - - - - - - - - - - -
- -
- -
-

Centrum Blogów

- Zacznij swą blogową przygodę -
- -
-
-
-

Najnowsze wpisy:

-
-

Lorem Ipsum

- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Czytaj więcej

-
-
-

Lorem Ipsum

- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Czytaj więcej

-
-
-

Lorem Ipsum

- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Czytaj więcej

-
-
-

Lorem Ipsum

- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Czytaj więcej

-
-
-

Lorem Ipsum

- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Czytaj więcej

-
-
-

Lorem Ipsum

- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Czytaj więcej

-
-
- - - - - \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..d177794 --- /dev/null +++ b/index.php @@ -0,0 +1,82 @@ + + + + + Projekt blogowy + + + + + + + + + + + + + + + + + +
+ +
+ +
+

Centrum Blogów

+ Zacznij swą blogową przygodę +
+ +
+
+ +

Najnowsze wpisy:

+
+
+
+prepare("SELECT * FROM post ORDER BY data_dodania DESC")) +{ + $sql->execute(); + $sql->bind_result($post_id,$trash,$title,$description,$main,$image,$date,$mod_date); + while ($sql->fetch()) + { ?> + + close(); + } +else die( "Błąd w zapytaniu SQL! Sprawdź kod SQL w PhpMyAdmin." );?> +
+ + + + + \ No newline at end of file