PHP Classes

File: system/modules/database/info.xml

Recommend this page to a friend!
  Classes of Mihajlo Siljanoski  >  Xmodule  >  system/modules/database/info.xml  >  Download  
File: system/modules/database/info.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Xmodule
Modular Web application development framework
Author: By
Last change:
Date: 7 years ago
Size: 1,458 bytes


Class file image Download
    <description>Database module for easy access database or generating queries via active records. Database connection can be set in app/config.php</description>
        <return>$db will be object with all active records from <a href="" target="_blank">CodeIgniter Database class</a></return>
    //selecting all posts from posts table
    $posts=$db->query("SELECT * FROM posts")->result_array();
    //preparing data for insert
        'title'=>'Simple post title',
        'description'=>'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...',
        'created'=>date('Y-m-d H:i:s')
    //inserting record in posts table
        echo 'record inserted in database';
    <name>EllisLab, Inc.</name>
For more information send a message to info at phpclasses dot org.