From c2b63d6100b81c566c72cdfe309b2224f8458e87 Mon Sep 17 00:00:00 2001 From: German Correa Date: Fri, 1 Dec 2017 13:58:33 -0300 Subject: [PATCH] Create database file and schema Modification in register script --- db/db.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++ db/ggdworkshop.db | Bin 0 -> 16384 bytes 2 files changed, 46 insertions(+) create mode 100644 db/db.php create mode 100644 db/ggdworkshop.db 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 0000000000000000000000000000000000000000..1875863de272054882d2258a16ad96c6739ca2a2 GIT binary patch literal 16384 zcmeI%O>fgM7zc1?od%jVZMSl%IB2BxHB9%+!C2lcFoGncepMV>m z3qBG@oG|xw4ZBpm{3AuF+vj=g{Om-s`tiz@xuByoOL$ISkyBz>U9I^^<8&8i{FSimQiZ*9+s8Md>YSkC|$_9r;Cw{B@bn){&i9r9Lj0L z7ceS=Z@8S8ffv`xV3BYcFGQQ*Hw!+r?>Sd}wtf#I5q{xrEXF+IMU6|nQZ_{Oc$Uk` zD5=H! zrL=z2MX=sv&sJV#aOr5CiaW=^>9E-fU0T+y=X(eBcEci4MdJJ2BgvrYc00bZa0SG_<0uX=z1Rwx`?F;+`h-LTA literal 0 HcmV?d00001