commit 7a8dd8b2c8ea9bc5246ceb73f1482b91b3a911f6
parent e5e76a21f7e78fb3c841d44b37b980ff1e5f9958
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 23 Nov 2014 14:57:48 +0100
make variables global
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -25,6 +25,7 @@
read();
function read(){
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)) {
echo 'SELECT * FROM posts WHERE id LIKE '.$id;
//Put database data in variables
@@ -35,13 +36,7 @@
$post_author = $daten->author;
$post_date = $daten->date;
$post_categrory = $daten->category;
- echo $post_id;
- echo $post_title;
- echo $post_text;
- echo $post_author;
- echo $post_date;
- echo $post_categrory;
-
+
}
$resultat->close();