We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Many applications will use some form of database. MySQL is currently the only database that has a built in driver, but others may be used.
There are two ways of connecting to a database.
Lots of applications will use a database throughout the entire program and will benefit from connecting right away.
To autoload a database all the database's information will be stored in the /application/config/database.php file.
/application/config/database.php
The database connection will not run until the $database has been set to true in /application/config/autoload.php
$database
/application/config/autoload.php
Once the $database variable has been set to true, the framework will attempt to connect to the database automatically when the application starts.
...
To make calls to the database you must load the FDatabase library.
FDatabase
Database calls are used using FDatabase::query('');
FDatabase::query('');