This example demonstrates how to establish a connection to a database using the WebFiori Database Abstraction Layer.
- Creating a
ConnectionInfoobject with database credentials - Establishing a connection using the
Databaseclass - Testing the connection
example.php- Main example code
php example.phpThe example will output connection status and basic database information.
- 02-basic-queries - Learn CRUD operations after connecting
- 03-table-blueprints - Create table structures programmatically
- 06-migrations - Manage schema changes with migrations