DB.class & Functions

//Class is initated as  $cbtpl

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

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

Object MethodsFunctionsPurpose



Executes a MYSQL query and return ARRAY

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

Executes Mysql SELECT query and returns data.


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($tbl, assoc array $fields)

Insert data into a table


returns last insert_id


Executes a raw Mysql Command

Last updated