本文整理汇总了PHP中DbConn::initDb方法的典型用法代码示例。如果您正苦于以下问题:PHP DbConn::initDb方法的具体用法?PHP DbConn::initDb怎么用?PHP DbConn::initDb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbConn
的用法示例。
在下文中一共展示了DbConn::initDb方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
public function add()
{
$this->con = DbConn::initDb();
$table = 'admin';
$arr = array('username' => $this->name, 'password' => $this->password);
$str = DbConn::table_insert('admin', $arr);
$result = mysql_query($str, $this->con);
if ($result) {
return true;
} else {
return false;
}
}
示例2: userinfo_delete
function userinfo_delete($condition)
{
$str = DbConn::table_delete('userinfo', $condition);
$this->con = DbConn::initDb();
return mysql_query($str, $this->con);
}
示例3: token_delete
function token_delete($condition)
{
$str = DbConn::table_update('token', $condition);
$this->con = DbConn::initDb();
return mysql_query($str, $this->con);
}
示例4: keyword_delete
function keyword_delete($condition)
{
$str = DbConn::table_delete('keyword', $condition);
$this->con = DbConn::initDb();
return mysql_query($str, $this->con);
}
示例5: table_delete
function table_delete($condition)
{
$str = DbConn::table_insert('parentinfo', $condition);
$this->con = DbConn::initDb();
return mysql_query($str, $this->con);
}
示例6: subject_delete
function subject_delete($condition)
{
$str = DbConn::table_delete('subject', $condition);
$this->con = DbConn::initDb();
return mysql_query($str, $this->con);
}