Note that there are some explanatory texts on larger screens.

plurals
  1. POarray output not reading correctly
    primarykey
    data
    text
    <p>My issue is that one part displays file directory names and the other parts are supposed to be file counts for certain folders in those directories. right now it is listing the directory names but it is only doing a file count on the first directory and not on any of the others. i do realize that currently the code is for the counts under the In Que table header but if i get this figured out it makes it easier to use for the other categories. </p> <p>but yes the issue is that i need it to grab file counts from all locations not just the first file path it finds. </p> <p><strong>This is the code:</strong></p> <pre><code>&lt;?php if ($handle = opendir('Users/')) { $blacklist = array('.', '..', 'somedir', 'somefile.php'); while (false !== ($file = readdir($handle))) { if (!in_array($file, $blacklist)) { $i = 0; $dir = 'Users/'; $files1 = scandir($dir); $x = 1; while ($x &lt;= 4 and $i &lt;= 4){ $x++; $dir1 = 'Users/'.$files1[$x].'/uploaded/'; if ($handle1 = opendir($dir1)) { while (($file1[$x] = readdir($handle1)) !== false){ if (!in_array($file1[$x], array('.', '..')) &amp;&amp; !is_dir($dir1.$file1[$x])) $i++; } } $file."\n" == $option; ?&gt; &lt;table border='1px' style="border:thin;" cols="3"&gt; &lt;th&gt;Employee&lt;/th&gt; &lt;th&gt;In Que&lt;/th&gt; &lt;th&gt;Incomplete&lt;/th&gt; &lt;th&gt;Processed&lt;/th&gt; &lt;?php echo "&lt;tr&gt;"; echo "&lt;td&gt;"; echo "$file\n"; echo "&lt;/td&gt;"; echo "&lt;td&gt;".$i."&lt;/td&gt;"; echo "&lt;td&gt;" ."&lt;/td&gt;"; echo "&lt;td&gt;" ."&lt;/td&gt;"; echo "&lt;tr&gt;"; echo "&lt;br&gt;"; ?&gt; &lt;/table&gt; &lt;?php } // integer starts at 0 before counting } } } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload