本文整理汇总了PHP中MySQL::GetTable方法的典型用法代码示例。如果您正苦于以下问题:PHP MySQL::GetTable方法的具体用法?PHP MySQL::GetTable怎么用?PHP MySQL::GetTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MySQL
的用法示例。
在下文中一共展示了MySQL::GetTable方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Authorization
function Authorization($login, $password)
{
$mysql = new MySQL();
$array = $mysql->GetTable($this->NameBase, "User", NULL, "login='" . $login . "'");
if ($array[0]["password"] === md5(md5($password))) {
$token = $this->SetToken($array[0]['id']);
return array('login' => $array[0]['login'], 'token' => $token);
}
}
示例2: GetFullProfile
function GetFullProfile($Id_NTO)
{
$mysql = new MySQL();
return $mysql->GetTable($this->NameBase, "FullData", NULL, "Id_NTO=" . $Id_NTO);
}
示例3: RemoveInerObjects
function RemoveInerObjects($Id_OBJ)
{
$mysql = new MySQL();
$mass = $mysql->GetTable($this->NameBase, "Objects", NULL, "Id_OBJ=" . $Id_OBJ);
foreach ($mass as $key => $value) {
if (!$this->RemoveObject($value["id"])) {
conprint("RemoveInerObjects=" . $Id_OBJ, "0");
return false;
}
}
conprint("RemoveInerObjects=" . $Id_OBJ, "1");
return true;
}
示例4: GetLink
function GetLink($Id_MAP)
{
$mysql = new MySQL();
return $mysql->GetTable($this->NameBase, "LinkOBJ", NULL, "Id_MAP=" . $Id_MAP);
}
示例5: GetMAPxml
function GetMAPxml($id)
{
$mysql = new MySQL();
$array = $mysql->GetTable($this->NameBase, "Maps", NULL, "id=" . $id);
return file_get_contents($array[0]["data"], true);
}
示例6: GetSmallObjectOne
function GetSmallObjectOne($Id_SPD)
{
$mysql = new MySQL();
$mass = $mysql->GetTable($this->NameBase, "SmallData", Null, "id=" . $Id_SPD);
return $mass[0];
}
示例7: GetFullProfile
function GetFullProfile()
{
$mysql = new MySQL();
return $mysql->GetTable("DataBase", "FullProfile", NULL, "Id_NTO=" . $this->Id_NTO);
}