summaryrefslogtreecommitdiff
path: root/www/select.php
diff options
context:
space:
mode:
authorHorus32014-02-28 12:16:52 +0100
committerHorus32014-02-28 12:16:52 +0100
commite1ef7734cb744ec102a46913c67066590a6e408e (patch)
tree404a8b4d0d119af4ae672484c45f1c1a57d6aba9 /www/select.php
parent8f0e1f9fd06b79b598d31ae7a6df132cb69f1ecd (diff)
downloadfiles.iamfabulous.de-e1ef7734cb744ec102a46913c67066590a6e408e.tar.gz
.
Diffstat (limited to 'www/select.php')
-rw-r--r--www/select.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/select.php b/www/select.php
index 78ab1bc..ac275df 100644
--- a/www/select.php
+++ b/www/select.php
@@ -8,6 +8,13 @@ $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';");
+while($result[$count] = $result_db->fetchArray(SQLITE3_NUM)){
+ $count++;
+}
+
+echo count($result);
+
+/*
while($result[$count]=$result_db->fetchArray(SQLITE3_NUM)){
while(!empty($result)){
$dimension = count($result);
@@ -20,6 +27,8 @@ while($result[$count]=$result_db->fetchArray(SQLITE3_NUM)){
}
$count++;
}
+*/
+
/*
function select_db ($db, $owner, $parentdir){