Add the number of book in each databases (multidatabase).
This commit is contained in:
부모
c937a29d6c
커밋
c6e75b7258
2개의 변경된 파일과 10개의 추가작업 그리고 2개의 파일을 삭제
6
book.php
6
book.php
|
@ -382,6 +382,12 @@ class Book extends Base {
|
|||
$this->getComment (), "text/html",
|
||||
$this->getLinkArray (), $this);
|
||||
}
|
||||
|
||||
public static function getBookCount($database = NULL) {
|
||||
global $config;
|
||||
$nBooks = parent::getDb ($database)->query('select count(*) from books')->fetchColumn();
|
||||
return $nBooks;
|
||||
}
|
||||
|
||||
public static function getCount() {
|
||||
global $config;
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue