rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 84cade237e399729adabfe6a6dfce72c0cc4bc87
parent 7e644abbba644f0c930f35a26f8eafe9350c2a8d
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 15:20:31 +0100

fix of the .....

Diffstat:
Mcore/backend/blog/posts.php | 28+++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -40,19 +40,21 @@ } $resultat->close(); } else { - $daten = $resultat->fetch_object(); - //If no data in Database give error - echo 'SELECT * FROM posts WHERE id LIKE '.$id; - var_dump ($daten); - global $error; - $error = "1"; - echo "Nothing to read from Database!"; - $post_id = "Database error!"; - $post_title = "Database error!"; - $post_text = "Database error!"; - $post_author = "Database error!"; - $post_date = "Database error!"; - $post_categrory = "Database error!"; + while($daten = $resultat->fetch_object() ){ + //If no data in Database give error + echo 'SELECT * FROM posts WHERE id LIKE '.$id; + var_dump ($daten); + global $error; + $error = "1"; + echo "Nothing to read from Database!"; + $post_id = "Database error!"; + $post_title = "Database error!"; + $post_text = "Database error!"; + $post_author = "Database error!"; + $post_date = "Database error!"; + $post_categrory = "Database error!"; + } + $resultat->close(); } if ($read != 0){ read();