Location: PHPKode > scripts > Ladybug > Ladybug-0.6/examples/db.php
<?php

require_once __DIR__.'/../vendor/autoload.php';
Ladybug\Loader::loadHelpers();

$connection = mysql_connect('localhost', 'dbuser', 'dbpass');
mysql_select_db('dbname', $connection);
$result = mysql_query('SELECT * FROM user', $connection);

ladybug_dump($connection, $result);
Return current item: Ladybug