commit c0a35bcf6345cf7f6378bfe905d15e44ed83181e parent dc58e7e909f70528b9b4d9a6c6496010135fb242 Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 23 Nov 2014 11:46:18 +0100 rewrite posts.php I got an idea :D Diffstat:
| M | core/backend/blog/posts.php | | | 31 | ++++++++++++++++--------------- |
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -14,24 +14,25 @@ exit(); } if (empty($_GET["post_id"])){ - //Check if Data in it - if ($resultat = $connection->query('SELECT * FROM posts')) { - //Put database data in variables - while($daten = $resultat->fetch_object() ){ - $post_id_clean = $daten->id; - $post_title_clean = $daten->title; - $post_text_clean = $daten->text; - $post_author_clean = $daten->author; - $post_date_clean = $daten->date; - $post_categrory_clean = $daten->category; + #//Check if Data in it + #if ($resultat = $connection->query('SELECT * FROM posts')) { + # //Put database data in variables + # while($daten = $resultat->fetch_object() ){ + # $post_id_clean = $daten->id; + # $post_title_clean = $daten->title; + # $post_text_clean = $daten->text; + # $post_author_clean = $daten->author; + # $post_date_clean = $daten->date; + # $post_categrory_clean = $daten->category; - $post_id = [ - $post_id_clean => $post_id_clean, - ]; + # $post_id = [ + # $post_id_clean => $post_id_clean, + # ]; - } - $resultat->close(); + # } + # $resultat->close(); + echo "<b>bug?</b>" } else { //If no data in Database give error echo "Es konnten keine Daten aus der Datenbank ausgelesen werden";