oxid-sql-logger/example/simple.php

11 regels
295 B
PHP

2019-08-20 23:34:33 +02:00
<?php
require __DIR__ . '/../../../../source/bootstrap.php';
\StartSQLLog();
$db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
2019-08-21 00:36:20 +02:00
$list = $db->getAll('SELECT * FROM oxarticles WHERE oxprice < ? LIMIT 100', [49.99]);
2019-08-20 23:34:33 +02:00
\StopSQLLog();