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); }
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); }
function userinfo_select($arr, $limit) { $str = DbConn::table_select('userinfo', $arr, $limit); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }
function token_select($arr, $limit) { $str = DbConn::table_select('token', $arr, $limit); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }
function keyword_select() { $str = DbConn::table_select('keyword', null); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }
function subject_select($arr, $limit) { $str = DbConn::table_select('Subject', $arr, $limit); $this->con = DbConn::initDb(); return mysql_query($str, $this->con); }