Constructor: Opens the connection to the database
public __construct ( boolean $connect = true, string $database = null, string $server = null, string $username = null, string $password = null, string $charset = null ) | ||
$connect | boolean | (Optional) Auto-connect when object is created |
$database | string | (Optional) Database name |
$server | string | (Optional) Host address |
$username | string | (Optional) User name |
$password | string | (Optional) Password |
$charset | string | (Optional) Character set |