PHP Classes

refactoring

Recommend this page to a friend!

      Simple PHP MySQLi  >  All threads  >  refactoring  >  (Un) Subscribe thread alerts  
Subject:refactoring
Summary:refactoring
Messages:1
Author:forlord
Date:2014-06-20 14:10:18
 

  1. refactoring   Reply   Report abuse  
Picture of forlord forlord - 2014-06-20 14:10:18
Good day
my be use self::$counter++; in
public function query( $query )
{
$full_query = $this->link->query( $query );
if( $this->link->error )
{
$this->log_db_errors( $this->link->error, $query );
return false;
}
else
{
self::$counter++;
return true;
}
}
and delete from all function self::$counter++;