require 'dibi.phar'; dibi::connect([ 'driver' => 'mysqli', 'host' => 'localhost', 'username' => 'kodi', 'password' => 'qREQPw49fh7tzaeh', 'database' => 'kodi', ]); $all=dibi::query('SELECT * FROM [kodiLog] ORDER BY id'); $unique=dibi::fetchSingle('SELECT count(DISTINCT ip) FROM [kodiLog] '); ?>