summaryrefslogtreecommitdiff
path: root/www/select.php
diff options
context:
space:
mode:
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){