$db = \Propel::getDefaultDB();
$db = \Propel::getDefaultDB(); $name = $db->getName();
$db = \Propel::getDefaultDB(); $sql = "SELECT * FROM customers"; $stmt = $db->prepare($sql); $stmt->execute(); $results = $stmt->fetchAll(\PDO::FETCH_ASSOC);In this example, a query is executed using the default database connection. The query is prepared and executed using the prepare and execute methods, respectively. The results of the query are returned using the fetchAll method. Propel is a PHP package library.