File path: dist/twist/Core/Models/Database/ProtocolPDO.model.php
Namespace: Twist\Core\Models\Database
connect
— The library of PDO, this will allow the Database class to
communicate with a MySQL server using the advanced PDO Protocol
Name | Description |
---|---|
$strServer | n/a |
$strUsername | n/a |
$strPassword | n/a |
$strDatabase | n/a |
[$intPort = 3306] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strServer = 'foo';
$strUsername = 'foo';
$strPassword = 'foo';
$strDatabase = 'foo';
$intPort = 3306;
//Call the function connect with the example vars
$resProtocolPDO = new \Twist\Core\Models\Database\ProtocolPDO();
$resProtocolPDO -> connect($strServer, $strUsername, $strPassword, $strDatabase, $intPort);