} $output.= "</div>"; /** * Finish **/ $n = $n + 1; $output.= "</div>"; } } /** * END WHILE **/ unset($selectBatch); $selectBatch = hwd_vs_ConverterTools::selectBatch($row, "re-generate_thumb", $batch); $count = mysql_num_rows($selectBatch); // check if any waiting videos if ($count == 0) { $output.= "<div class=\"box\"><h2>There are no videos waiting for thumbnail re-generation</h2><h3>Exiting...</h3></div>"; } else { /** * Process each video file **/ $n = 1; while ($result = @mysql_fetch_array($selectBatch)) { $filename_noext = $result['video_id']; hwd_vs_ConverterTools::set($row, $filename_noext); $output.= "<div class=\"box\"><div><h2>Re-calculating Duration (File ".$n." of ".$count.")</h2></div>";