$db = new dbc('mysql:host=localhost;dbname=mydatabase', 'username', 'password');
$stmt = $db->prepare('INSERT INTO mytable (name, email) VALUES (?, ?)'); $stmt->execute(['John', 'john@example.com']);
$stmt = $db->query('SELECT * FROM mytable'); $results = $stmt->fetchAll(PDO::FETCH_ASSOC);These examples show how to use the PHP Model dbc to connect to a database, insert data, and select data. The package library for this class is PDO, which is a PHP extension for database access.