1. Read
  2. Vote
  3. Old
  4. New
  5. Hot
  6. Reply

Wiki: Topnew Db Where Docs

Wiki: Howto use Topnew\Db v 2019.10.10

Topnew DB is a PHP class to use PDO database library easily.

7 - $db->where()

where() and having() have exactly same behaviour, will accept multiple calls.

->where('raw SQL')
->where('id', 1
Cat: CMS | Read: 2499 | 16/03/2026 | Like: 9

Wiki: Topnew DB Docs

Wiki: Howto use Topnew\Db\Db v 2025.01.01

Topnew\DB\Db is a lightweight PHP wrapper around PDO that simplifies database queries.

pre{font-family:'Droid Sans Mono',monospace;font-size:.8em;background:#eee;padding:10px}b,.b{font-weight:700}

1 -
Cat: CMS | Read: 13695 | 10/03/2026 | Like: 10

Wiki: Topnew Form Helper

Wiki: Topnew\Util\Form v 2026.04.04

Topnew Form is a view helper class used to generate HTML form elements programmatically.

pre{font-family:'Droid Sans Mono',monospace;font-size:.8em;background:#eee;padding:10px}b,.b{font-weight:700}


Sample Usage:
Cat: CMS | Read: 67099 | 01/03/2026 | Like: 5
Tags: CMS , Wiki

Topnew CMS - User Database

Today we are going to make a user system, which will be used for login, user management, role permission, page access control etc.

1 - team

CREATE TABLE team (
id int NOT NULL AUTO_INCREMENT PRIMARY KEY,
id_up int NOT NULL DEFAULT 0, -- parent team id
name varch
Cat: CMS | Read: 1141 | 05/06/2022

Topnew CSS v 2023 JS related

6 - Javascript related

There are a list of CSS class binded with jQuery

6.1 span of any width / height

class=span data-w=300px

class=span data-w=30% data-h=100px
Cat: CMS | Read: 1534 | 16/04/2022
Tags: CSS
  1. 1
  2. 2
  3. 3

Category