From 548e11e863e906bb80695fe7b2789fe4af3f0f39 Mon Sep 17 00:00:00 2001 From: moehm Date: Wed, 17 Sep 2014 00:16:08 +0200 Subject: init --- public_html/class/mysql.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 public_html/class/mysql.php (limited to 'public_html/class/mysql.php') diff --git a/public_html/class/mysql.php b/public_html/class/mysql.php new file mode 100644 index 0000000..b2d2983 --- /dev/null +++ b/public_html/class/mysql.php @@ -0,0 +1,28 @@ +dbhost=$dbhost; + $this->dbuser=$dbuser; + $this->dbname=$dbname; + $this->dbpassword=$dbpassword; + $this->dbprefix=$dbprefix; + } + + public function open(){ + try { + $this->db = new mysqli($this->dbhost, $this->dbuser, $this->dbpassword, $this->dbname); + } catch (Exception $e){ + echo $e->getMessage(); + exit; + } + } +} -- cgit v1.2.3