Db::connect

Usage

PDO Db::connect(string $dbname, string $user, [ string $password = '' ], [ string $host = 'localhost' ], [ int $port = '3306' ])

Description

Used internally to lazy connect to the database upon first SQL statement being performed. You should never need to execute this method yourself.

Parameters

Parameter Required Type Description
$dbname Yes string
$user Yes string
$password No string
$host No string
$port No int

Return Value

PDO connection object.

See Also