invoice
This commit is contained in:
parent
7c16a27747
commit
fb844f9179
@ -137,7 +137,8 @@ public function updateData($table, $data, $where)
|
||||
public function getCategoryBooks()
|
||||
{
|
||||
return $this->db->table('books')
|
||||
->join('category', 'books.category= category.id', 'left')
|
||||
->join('book_categories', 'book_categories.book_id= books.book_id', 'left')
|
||||
->join('category','category.id=book_categories.category_id')
|
||||
->where('category.name', 'membership')
|
||||
->get()
|
||||
->getResult();
|
||||
@ -146,7 +147,8 @@ public function updateData($table, $data, $where)
|
||||
public function getNonMembershipCategoryBooks()
|
||||
{
|
||||
return $this->db->table('books')
|
||||
->join('category', 'books.category = category.id', 'left')
|
||||
->join('book_categories', 'book_categories.book_id= books.book_id', 'left')
|
||||
->join('category','category.id=book_categories.category_id')
|
||||
->where('category.name !=', 'membership')
|
||||
->get()
|
||||
->getResult();
|
||||
|
||||
@ -131,7 +131,7 @@
|
||||
<li>
|
||||
<a href="<?= base_url()."subscribers_list"; ?>">
|
||||
<i class="ri-shield-user-line"></i>
|
||||
<span>Subscription </span>
|
||||
<span>Membership </span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user