andre 4 жил өмнө
parent
commit
ab577e14b7
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -6,7 +6,7 @@ class db extends mysqli {
     protected $pass = 'Blubb123-';
     protected $pass = 'Blubb123-';
     protected $db   = 'ban';
     protected $db   = 'ban';
 
 
-    public function __construct() {
+    public function __construct($host = 'localhost', $user = null, $pass = null, $db = null) {
         print_r($this);
         print_r($this);
         @parent::__construct($host, $user, $pass, $db);
         @parent::__construct($host, $user, $pass, $db);
         if($this->connect_errno){
         if($this->connect_errno){