} $output.= "<div><b>RE-APPROVING</b></div>"; $sql = "UPDATE ".$row->dbprefix."hwdvidsvideos SET approved='yes' WHERE id = ".$result['id']; $db = @mysql_query($sqlpending); if (!$db) { @mysql_close($dbconnect); $connectServer = hwd_vs_ConverterTools::connectServer($row); $connectDatabase = hwd_vs_ConverterTools::connectDatabase($row, $connectServer); @mysql_query($sql) or die('error: ' . mysql_error()); } $output.= "</div>"; /** * Finish **/ $n = $n + 1; $output.= "</div>"; } } /** * END WHILE **/ $output.= "</body></html>"; $closeServer = hwd_vs_ConverterTools::closeServer($connectServer); $internal = intval(@$_REQUEST['internal']); if ($internal == 1) { print $output; } ?>