__construct方法中的BD连接

时间:2016-11-03 17:19:44

标签: php mysql laragon

public function __construct($_mobile= array()){
        $conn = mysqli_connect('localhost', 'root', '') or die("not connected");
        mysql_select_db("oop_crud") or die("db not found");
        echo "testing";
}

0 个答案:

没有答案