commit 39ae786e3c6eb6fbc16a67e00b0b70df5185b69d
parent 7f1b0641ec04aad2ef733a81ee6469ef6a1c1cad
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 23 Nov 2014 15:40:56 +0100
aand next update of the posts.php file :D
Diffstat:
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -22,6 +22,7 @@
# $post_categrory = "bug?";
#}else{
//Check if Data in it
+ alles();
read();
function read(){
global $id, $connection, $read;
@@ -64,8 +65,30 @@
read();
}
}
+ function alles(){
- #}
+ if ($resultat = $connection->query('SELECT * FROM posts')) {
+ global $id, $connection, $read;
+ global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory;
+ if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE '.$id)) {
+ while($daten = $resultat->fetch_object() ){
+ $post_id = $daten->id;
+ }
+ $resultat->close();
+ }
+ }
+ if ($read != 0){
+ alles();
+ read();
+ }
+
+
+
+
+
+
+
+ }
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php
@@ -86,9 +86,9 @@
$x = 1;
if ($empty){
if (!$error = "1"){
- while ($x < 10){
+ while ($x < $post_id){
$read = "1";
- $id = $x;
+ $id = 1;
echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>";
$x = $x+1;
}