😎
ClipBucket
  • What is ClipBucket
  • Fundamentals
    • Files Structure
    • Basic Understandings
      • Videos Class & Functions
      • User Class & Functions
      • Template Class & Functions
      • DB.class & Functions
      • User Levels & Permissions
  • Guides
    • Template Customization
    • Plugin Development
    • Anchors, Functions & Filters
    • Clipbucket template files
    • Functions
      • add_admin_menu
      • get_thumb
      • FlashPlayer
      • {ANCHOR }
      • add_js
      • lang
      • {videoLink }
      • get_users
      • get_videos
  • Group 1
    • Users
Powered by GitBook
On this page
  1. Fundamentals
  2. Basic Understandings

DB.class & Functions

//Class is initated as  $cbtpl
$db->select($query);

Absolute Path of the Class File /includes/classes/db.class.php

Absolute Path of the functions file /includes/functions_db.php

Object Methods
Functions
Purpose

::_select($query)

db_select($query)

Executes a MYSQL query and return ARRAY

::select($tbl, $fields, $condition, $order)

Executes Mysql SELECT query and returns data.

::db_update

db_update($tbl, $assoc_fields, $condition)

Update a DB table and set values acording to the Assoc_array fields and as per $condition

::db_insert

db_insert($tbl, assoc array $fields)

Insert data into a table

::insert_id

returns last insert_id

::Execute()

Executes a raw Mysql Command

PreviousTemplate Class & FunctionsNextUser Levels & Permissions

Last updated 3 years ago