本文整理匯總了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);
}