Database Class

Posted by Lachhekumar Nadar on 2009-07-02 23:57:08

Database class tries to help user to create complex query in a much better way, by using few function. INSERT, UPDATE, DELETE and SELECT are made easy

    SELECT
        [ALL | DISTINCT | DISTINCTROW ]
          [HIGH_PRIORITY]
          [STRAIGHT_JOIN]
          [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
          [SQL_CACHE | SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS]
        select_expr, ...
        [FROM table_references
        [WHERE where_condition]
        [GROUP BY {col_name | expr | position}
          [ASC | DESC], ... [WITH ROLLUP]]
        [HAVING where_condition]
        [ORDER BY {col_name | expr | position}
          [ASC | DESC], ...]
        [LIMIT {[offset,] row_count | row_count OFFSET offset}]
        [PROCEDURE procedure_name(argument_list)]
        [INTO OUTFILE 'file_name' export_options
          | INTO DUMPFILE 'file_name'
          | INTO var_name [, var_name]]
        [FOR UPDATE | LOCK IN SHARE MODE]]

The most of the function of SQl statement are covered through function, you can use join, where , sub query and lot

PHP Code
<?
//simple database code
$db = new database();
$db->where("1");
$db->select("users");

echo 
$db->f_firstname;
?>

Table of content

Installation

Variable & Replace Pattern

URL And File Structure

Image Function

Templates

Form Handling

Database Class

      > Variables

      > Direct Query

      > where()

      > join()

      > groupby()

      > having()

      > orderby()

      > limit()

      > union()

      > query()

      > select()

      > register()

      > moveto()

      > makevaraible()

      > makexml()

      > allxml()

      > addnew()

      > update()

      > delete()

      > template()

      > display()

Mail Class

File Class

Javascript Class

Backoffice Class

Pages class

Valid Class