converted reportfull.php to mysqli