diff options
| author | root | 2014-02-28 15:08:45 +0100 |
|---|---|---|
| committer | root | 2014-02-28 15:08:45 +0100 |
| commit | 8b23807a0d23eb87384f8d4df519f654254cbf0e (patch) | |
| tree | 94305853240bf2d51494990b4ebcfc207b0de0e0 /www | |
| parent | ffe5fc7b12fbb9c13fb1477ae97417fac3f643ca (diff) | |
| download | files.iamfabulous.de-8b23807a0d23eb87384f8d4df519f654254cbf0e.tar.gz | |
.
Diffstat (limited to 'www')
| -rw-r--r-- | www/select.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/www/select.php b/www/select.php index f0cd143..d1b6189 100644 --- a/www/select.php +++ b/www/select.php @@ -6,14 +6,22 @@ $db = new SQLite3("../database/sqlite.db"); $owner=2; $parentdir=0; $count=0; -$result_db = $db->query("SELECT id, parent, name, share FROM files WHERE parent=$parentdir AND owner=$owner AND folder='DIRECTORY' AND share='PUBLIC';"); +$result_db = $db->query("SELECT id, parent, name, share FROM files WHERE owner=$owner AND folder='DIRECTORY' AND share='PUBLIC';"); while($result[$count] = $result_db->fetchArray(SQLITE3_NUM)){ $count++; } +echo "Found " . $count . " folder. <br>"; + for($i=0;$i<$count;$i++){ - echo count($result); + + echo "name: " . $result[$i][2] . "<br>"; +/* + for($j=0;$j < count($result[$i]); $j++){ + echo "name: " . $result[$i][$j] . "<br>"; + } +*/ } /* |
