rpicms

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

commit 96eda513ec6600e09c28201aac306c35071806c4
parent bac0a529236ac62039836397a2d0e6d520f1f24f
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 17 Jan 2015 11:34:54 +0100

new idea

Diffstat:
Mthemes/jumbotron/admin.php | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/themes/jumbotron/admin.php b/themes/jumbotron/admin.php @@ -42,10 +42,10 @@ if ($resultat = $connection->query('SELECT id FROM allowed_user')) { } $x = 1; $user = "test"; -if ($resultat = $connection->query('SELECT email FROM allowed_user')) { - while ($x < $user_ids){ - $allowed_user = $resultat->fetch_array(MYSQLI_NUM); - $x = $x+1; +if ($resultat = $connection->query('SELECT email FROM allowed_user LIKE $user')) { + while($daten = $resultat->fetch_object() ){ + $allowed_user = $daten->email; + //var_dump($daten); } } var_dump($allowed_user);