mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +09:00
#19623705 DB 클래스 정리
1. DB 드라이버 생성방식 수정 2. $class_name, $class_file 이름 문자열 생성하는 부분 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8184 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2c25d64fb5
commit
59bf3cbb83
10 changed files with 90 additions and 6 deletions
|
|
@ -27,6 +27,14 @@
|
|||
if(!function_exists('mysqli_connect')) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief create an instance of this class
|
||||
*/
|
||||
function create()
|
||||
{
|
||||
return new DBMysqli;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DB 접속
|
||||
|
|
@ -110,4 +118,6 @@
|
|||
return mysqli_fetch_object($result);
|
||||
}
|
||||
}
|
||||
|
||||
return new DBMysqli;
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue