本文整理汇总了PHP中POD::genUpdateSql方法的典型用法代码示例。如果您正苦于以下问题:PHP POD::genUpdateSql方法的具体用法?PHP POD::genUpdateSql怎么用?PHP POD::genUpdateSql使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类POD
的用法示例。
在下文中一共展示了POD::genUpdateSql方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: update
public function update($arg)
{
$db = new POD();
$p = $db->connect();
if ($p == false) {
throw new Exception('Database connect failed');
}
$req = array();
$req[0] = array('Course_ID', $this->Course_ID);
$table = 'course';
$sql = $db->genUpdateSql($req, $arg, $table);
$db->query($sql);
$db->close();
}
示例2: update
public function update($arg)
{
$db = new POD();
$p = $db->connect();
if ($p == false) {
throw new Exception('Database connect failed');
}
$table = 'message';
//#########################
$req = array('message_id' => $this->message_id);
$sql = $db->genUpdateSql($req, $arg, $table);
$db->query($sql);
$db->close();
}
示例3: update
public function update($arg)
{
$db = new POD();
$p = $db->connect();
if ($p == false) {
throw new Exception('Database connect failed');
}
$table = 'stu_evaluate';
//#########################
$req = array();
$req[0] = array('Stu_ID' => $this->Stu_ID, 'Course_year_term' => $this->Course_year_term);
$sql = $db->genUpdateSql($req, $arg, $table);
$db->query($sql);
$db->close();
}
示例4: update
public function update($arg)
{
$db = new POD();
$p = $db->connect();
if ($p == false) {
throw new Exception('Database connect failed');
}
$table = 'stu_union_member';
//#########################
$req = array();
$req[0] = array('Group_ID' => $this->Group_ID, 'Stu_ID' => $this->Stu_ID);
$sql = $db->genUpdateSql($req, $arg, $table);
$db->query($sql);
$db->close();
}
示例5: update
public function update($arg)
{
$db = new POD();
$p = $db->connect();
if ($p == false) {
throw new Exception('Database connect failed');
}
$table = 'teacher_identification_info';
//#########################
$req = array();
$req[0] = array('Tea_ID' => $this->Tea_ID);
$sql = $db->genUpdateSql($req, $arg, $table);
$db->query($sql);
$db->close();
}
示例6: update
public function update($arg)
{
$db = new POD();
$p = $db->connect();
if ($p == false) {
throw new Exception('Database connect failed');
}
$table = 'res_group_log';
//#########################
$req = array();
$req[0] = array('Log_ID' => $this->Log_ID);
$sql = $db->genUpdateSql($req, $arg, $table);
$db->query($sql);
$db->close();
}
示例7: update
public function update($arg)
{
$db = new POD();
$p = $db->connect();
if ($p == false) {
throw new Exception('Database connect failed');
}
$table = 'financial_account';
//#########################
$req = array();
$req[0] = array('Money_id' => $this->Money_id);
$sql = $db->genUpdateSql($req, $arg, $table);
$db->query($sql);
$db->close();
}