Thread: My Modded TBDev
View Single Post
  #15  
Old 10th October 2016, 12:54
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
lmao not like BTManagers
PHP Code:
    function sql_query($query ''$cache_ttl 0)
    {
            global 
$TheQueryCount;
            
$TheQueryCount ++;
        if (
$query != '')
        {
            global 
$cache;
            
$this->query_result =  false;
            
$this->sql_add_num_queries($this->query_result);

            if (
$this->query_result === false)
            {
                if ((
$this->query_result = @mysqli_query($this->db_connect_id$query)) === false)
                {
                    
$this->sql_error($query);
                }
            }
        }
        else
        {
            return 
false;
        }

        return 
$this->query_result;
    } 
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
iforgot (24th May 2017)