Example #1
0
 /**
  * Check if a table is filled with data
  * 
  * @param string $tableName Table name
  * 
  * @return boolean true, if table is empty, otherwise false
  */
 public static function checkOnEmptyTable($tableName)
 {
     if (self::$instance->num_rows(self::$instance->query('SELECT * FROM ' . SQLPREFIX . $tableName)) < 1) {
         return true;
     } else {
         return false;
     }
 }