Пример #1
0
 function parentinfo_select_affect($arr, $limit)
 {
     $str = DbConn::table_select('parentinfo', $arr, $limit);
     $this->con = DbConn::initDb();
     mysql_query($str, $this->con);
     return mysql_affected_rows($this->con);
 }
Пример #2
0
 public function check()
 {
     $this->con = DbConn::initDb();
     $table = 'admin';
     $arr = array('name' => $this->name, 'password' => $this->password);
     $str = DbConn::table_select('admin', $arr);
     $result = mysql_query($str, $this->con);
     return mysql_fetch_array($result);
 }
Пример #3
0
 function userinfo_select($arr, $limit)
 {
     $str = DbConn::table_select('userinfo', $arr, $limit);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
Пример #4
0
 function token_select($arr, $limit)
 {
     $str = DbConn::table_select('token', $arr, $limit);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
Пример #5
0
 function keyword_select()
 {
     $str = DbConn::table_select('keyword', null);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
Пример #6
0
 function subject_select($arr, $limit)
 {
     $str = DbConn::table_select('Subject', $arr, $limit);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }