gl-website-deployer/admin/phpMyAdmin/libraries/classes/Controllers/Database/MultiTableQuery/QueryController.php
2024-11-19 08:02:04 +01:00

22 lines
531 B
PHP

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database\MultiTableQuery;
use PhpMyAdmin\Controllers\AbstractController;
use PhpMyAdmin\Database\MultiTableQuery;
final class QueryController extends AbstractController
{
public function __invoke(): void
{
$params = [
'sql_query' => $_POST['sql_query'],
'db' => $_POST['db'] ?? $_GET['db'] ?? null,
];
$this->response->addHTML(MultiTableQuery::displayResults($params['sql_query'], $params['db']));
}
}