TwistPHP Documentation

connect

File path: dist/twist/Core/Models/Database/ProtocolMYSQL.model.php
Namespace: Twist\Core\Models\Database
Extends:

connect

Parameters

Name Type Description
$strServerstringn/a
$strUsernamestringn/a
$strPasswordstringn/a
$strDatabasestringn/a
$strDatabasestringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strServer 'foo';
$strUsername 'foo';
$strPassword 'foo';
$strDatabase 'foo';
$strDatabase 'foo';

//Call the function connect with the example vars
$resProtocolMYSQL = new \Twist\Core\Models\Database\ProtocolMYSQL();
$resProtocolMYSQL -> connect($strServer$strUsername$strPassword$strDatabase$strDatabase);