예제 #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
파일: UserInfo.php 프로젝트: bmchun/sunset
 function userinfo_select($arr, $limit)
 {
     $str = DbConn::table_select('userinfo', $arr, $limit);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
예제 #4
0
파일: Token.php 프로젝트: bmchun/sunset
 function token_select($arr, $limit)
 {
     $str = DbConn::table_select('token', $arr, $limit);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
예제 #5
0
파일: KeyWord.php 프로젝트: bmchun/sunset
 function keyword_select()
 {
     $str = DbConn::table_select('keyword', null);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }
예제 #6
0
파일: Subject.php 프로젝트: bmchun/sunset
 function subject_select($arr, $limit)
 {
     $str = DbConn::table_select('Subject', $arr, $limit);
     $this->con = DbConn::initDb();
     return mysql_query($str, $this->con);
 }