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; } }
function userinfo_delete($condition) { $str = DbConn::table_delete('userinfo', $condition); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }
function token_delete($condition) { $str = DbConn::table_update('token', $condition); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }
function keyword_delete($condition) { $str = DbConn::table_delete('keyword', $condition); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }
function table_delete($condition) { $str = DbConn::table_insert('parentinfo', $condition); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }
function subject_delete($condition) { $str = DbConn::table_delete('subject', $condition); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }