rpicms

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

commit 1a64bd82506ac7b00ac98c948e9385bd6ecc6447
parent 360a4b7e0a566d6a068373617e4e852de2bf7b1d
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 17 Jan 2015 11:16:36 +0100

new idea

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

diff --git a/themes/jumbotron/admin.php b/themes/jumbotron/admin.php @@ -33,9 +33,20 @@ if (mysqli_connect_errno()) { printf("Verbindung fehlgeschlagen: %s\n", mysqli_connect_error()); exit(); } +if ($resultat = $connection->query('SELECT id FROM allowed_user')) { + while($daten = $resultat->fetch_object() ){ + $user_ids = $daten->id; + //var_dump($daten); + } + $resultat->close(); +} +$x = 1; $user = "test"; if ($resultat = $connection->query('SELECT email FROM allowed_user')) { + while ($x < $user_ids+1){ $allowed_user = $resultat->fetch_array(MYSQLI_NUM); + $x = $x+1; + } } var_dump($allowed_user); $allowed_user = array_filter($allowed_user);