本文整理汇总了PHP中MySQL::UpdateString方法的典型用法代码示例。如果您正苦于以下问题:PHP MySQL::UpdateString方法的具体用法?PHP MySQL::UpdateString怎么用?PHP MySQL::UpdateString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MySQL
的用法示例。
在下文中一共展示了MySQL::UpdateString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SetToken
function SetToken($id)
{
$mysql = new MySQL();
$token = generateCode();
$mysql->UpdateString($this->NameBase, 'User', "token='" . $token . "'", "id='" . $id . "'");
return $token;
}
示例2: PutSVG
function PutSVG($id, $Name, $data, $val)
{
$mysql = new MySQL();
if ($mysql->UpdateString($this->NameBase, "Maps", "name='" . $Name . "', data='" . $data . "'", "id=" . $id)) {
file_put_contents($data, $val);
conprint("PutSVG: " . $Name, "1");
return true;
}
}
示例3: PutLink
function PutLink($id, $Id_OBJ)
{
$mysql = new MySQL();
if ($mysql->UpdateString($this->NameBase, "Link", "Id_OBJ='" . $Id_OBJ . "'", "id=" . $id)) {
conprint("PutLINK: ", "1");
return true;
} else {
conprint("PutLINK: ", "0");
return false;
}
}
示例4: ReloadeSmallProfile
function ReloadeSmallProfile($Name, $Id_SP)
{
$mysql = new MySQL();
if ($mysql->UpdateString($this->NameBase, "SmallProfile", "name='" . $Name . "'", "id=" . $Id_SP)) {
conprint("ReloadeSmallProfile: " . $Name, "1");
return true;
} else {
conprint("ReloadeSmallProfile " . $Name, "0");
return false;
}
}
示例5: ReloadeSmallProfileOne
function ReloadeSmallProfileOne($Id_SPD, $Text)
{
$mysql = new MySQL();
if (!empty($Text)) {
$this->string = "text='" . $Text . "'";
return $mysql->UpdateString($this->NameBase, "SmallProfileData", $this->string, "id=" . $Id_SPD);
} else {
conprint("Нет данных для обновления SmallProfileData=" . $Id_SP, "0");
return false;
}
}
示例6: ReloadeFullProfile
function ReloadeFullProfile()
{
if (!empty($this->Name) && !empty($this->Id_FP)) {
$mysql = new MySQL();
if ($mysql->UpdateString("DataBase", "FullProfile", "name='" . $this->Name . "'", "id=" . $this->Id_FP)) {
conprint("ReloadeFullProfile С ИМЕНЕМ: " . $this->Name, "1");
return true;
} else {
conprint("ReloadeFullProfile С ИМЕНЕМ " . $this->Name, "0");
return false;
}
} else {
conprint("ReloadeFullProfile Id_FP или Name не задано", "0");
return false;
}
}