Thread: cleanup error
View Single Post
  #4  
Old 11th February 2010, 00:01
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
open phpBB3/includes/db/dball.php
find
PHP Code:
    function sql_num_queries($cached false)
    {
        return (
$cached) ? $this->num_queries['cached'] : $this->num_queries['normal'];
    } 
and add after
PHP Code:
        function sql_numrows($query_id 0)

        {

                if(!
$query_id)

                {

                        
$query_id $this->query_result;

                }

                if(
$query_id)

                {

                        
$result = @mysql_num_rows($query_id);

                        return 
$result;

                }

                else

                {

                        return 
false;

                }

        } 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote