function query($query) { global $querycount; $sendquery=mysql_query($query); if ($sendquery) { $querycount++; } }