wip
This commit is contained in:
18
db.php
Normal file
18
db.php
Normal 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);
|
||||
Reference in New Issue
Block a user