本文整理汇总了PHP中Connector::Connect方法的典型用法代码示例。如果您正苦于以下问题:PHP Connector::Connect方法的具体用法?PHP Connector::Connect怎么用?PHP Connector::Connect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Connector
的用法示例。
在下文中一共展示了Connector::Connect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Connector
* User: Family
* Date: 29.06.2015
* Time: 13:50
*/
require_once 'config/database.php';
require_once 'models/Connector.php';
require_once 'models/Tables.php';
require_once 'models/Create_DB.php';
$dbCreate = new Create_DB();
$dblink = $dbCreate->dbConnect();
if (isset($_POST['create_db'])) {
$dbCreate->dbCreate($dblink);
}
$dbConnect = new Connector();
$dbTables = new Tables();
$link = $dbConnect->Connect();
if (isset($_POST['tab_ul'])) {
$dbTables->table_userList($link);
}
if (isset($_POST['tab_t_sprav'])) {
$dbTables->table_t_sprav($link);
}
if (isset($_POST['tab_reg_l'])) {
$dbTables->table_region_list($link);
}
if (isset($_POST['tab_goods'])) {
$dbTables->table_goods($link);
}
//$dbConnect->Disconnect($link);
?>
<link rel="stylesheet" type="text/css" href="styless.css">
示例2: array
<?php
$datos = array("username" => "email@email.com", "password" => "password", "platform" => "xbox360", "hash" => "md5hash");
$connector = new Connector($datos);
$con = $connector->Connect();
echo "NUCLEUS ID: " . $con["nucleusId"];
echo "<br><br>";
echo "SID: " . $con["sessionId"];
echo "<br><br>";
echo "TOKEN: " . $con["phishingToken"];