diff --git a/db/db.php b/db/db.php new file mode 100644 index 0000000..c49bf5a --- /dev/null +++ b/db/db.php @@ -0,0 +1,46 @@ +open('./ggdworkshop.db'); + } + function schema(){ + $sql =<<exec($sql); + if(!$ret){ + echo $this->lastErrorMsg(); + } else { + echo "Schema created successfully\n"; + } + $this->close(); + } + } + + $db = new DB(); + if(!$db){ + echo $db->lastErrorMsg(); + }else{ + echo "Opened database successfully\n"; + } + $db->schema(); +?> + diff --git a/db/ggdworkshop.db b/db/ggdworkshop.db new file mode 100644 index 0000000..1875863 Binary files /dev/null and b/db/ggdworkshop.db differ