Frequently Asked Questions

Access database connection
Last Updated 2 years ago

DbFace already make a database connection to the current database, you can visit it via $this->db.
Please refer the CodeIgniter document to get full information about making queries.

  • Regular Queries
  • Generate Query Results
$query = $this->db->query("YOUR QUERY");

foreach ($query->result() as $row)
        echo $row->title;
        echo $row->name;
        echo $row->body;

Please Wait!

Please wait... it will take a second!