示例#1
0
 public function connect()
 {
     self::$link = new PDO($this->dsn, $this->username, $this->password);
 }
示例#2
0
文件: index.php 项目: undogit/POO
<?php

require_once '../../autoload.php';
$db = Cared_DB_Connection::getInstance("mysql:hostname=127.0.0.1;dbname=portfolio", "root", "0000");
$query = new Cared_DB_Select($db);