PHP code example of dzegarra / tracy-mysqli
1. Go to this page and download the library: Download dzegarra/tracy-mysqli library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dzegarra / tracy-mysqli example snippets
// Create an instance for Tracy Bar Panel
$panel = new \Dzegarra\TracyMysqli\BarPanel();
// Add the panel to Tracy
\Tracy\Debugger::getBar()->addPanel($panel);
// Make a connection to the DB using the \Dzegarra\TracyMysqli\Mysqli class instead of mysqli
$conn = new \Dzegarra\TracyMysqli\Mysqli("hostname", "username", "password", "database");
// Execute your queries