Пример #1
0
 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
0
 function userinfo_delete($condition)
 {
     $str = DbConn::table_delete('userinfo', $condition);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
Пример #3
0
 function token_delete($condition)
 {
     $str = DbConn::table_update('token', $condition);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
Пример #4
0
 function keyword_delete($condition)
 {
     $str = DbConn::table_delete('keyword', $condition);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
Пример #5
0
 function table_delete($condition)
 {
     $str = DbConn::table_insert('parentinfo', $condition);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
Пример #6
0
 function subject_delete($condition)
 {
     $str = DbConn::table_delete('subject', $condition);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }