commit 7eca14ce7bf7bb4fd24cb788ede8f7eb3a23a3ad
parent 0cc78ad390f83c6c9b4599477054c607da02bbf6
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 23 Nov 2014 12:43:21 +0100
It Works. Now it maybe shows all posts
Diffstat:
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -13,16 +13,15 @@
printf("Verbindung fehlgeschlagen: %s\n", mysqli_connect_error());
exit();
}
- if ($empty){
- $post_id = "bug?";
- $post_title = "bug?";
- $post_text = "bug?";
- $post_author = "bug?";
- $post_date = "bug?";
- $post_categrory = "bug?";
- }else{
+ #if ($empty){
+ # $post_id = "bug?";
+ # $post_title = "bug?";
+ # $post_text = "bug?";
+ # $post_author = "bug?";
+ # $post_date = "bug?";
+ # $post_categrory = "bug?";
+ #}else{
//Check if Data in it
- echo $id;
if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE '.$id)) {
//Put database data in variables
while($daten = $resultat->fetch_object() ){
@@ -46,7 +45,7 @@
}
- }
+ #}
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php
@@ -82,13 +82,15 @@
<h1>
<?php
$x = 1;
- if (!$post_title == "bug?"){
- while (!empty($post_title)){
+ if ($empty){
+ if (!$post_title == "bug?"){
+ while (!empty($post_title)){
+ echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>";
+ $x = $x+1;
+ }
+ }else{
echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>";
- $x = $x+1;
}
- }else{
- echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>";
}
?>
</h1>