0.9; $i++, $size /= 1024) {} return round($size, $precision).['B','kB','MB','GB','TB','PB','EB','ZB','YB'][$i]; } function main($pdo) { ?>
prepare("SELECT COUNT(*) as n FROM Libri"); $stmt->execute(); $data = $stmt->fetch(); echo "Volumi: " . $data["n"]; $vols = $data["n"]; ?>
prepare("SELECT COUNT(DISTINCT Autore) as n FROM Libri"); $stmt->execute(); $data = $stmt->fetch(); echo "Autori: " . $data["n"]; ?>