This commit is contained in:
2025-05-11 23:31:27 +02:00
commit d6da7a6a2e
5 changed files with 208 additions and 0 deletions

18
db.php Normal file
View File

@ -0,0 +1,18 @@
<?php
try {
$db = new SQLite3('ipam.db');
} catch (Exception $e) {
echo $e->getMessage();
exit();
}
$db->exec(<<<SQL
CREATE TABLE IF NOT EXISTS networks (
adress INTEGER NOT NULL,
mask INTEGER NOT NULL,
nom TEXT,
description TEXT,
PRIMARY KEY (adress, masque)
);
SQL);