2019-08-20 23:34:33 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require __DIR__ . '/../../../../source/bootstrap.php';
|
|
|
|
|
2019-09-20 16:05:36 +02:00
|
|
|
\D3StartSQLLog('Query for 100 items cheaper than 49,99');
|
2019-08-20 23:34:33 +02:00
|
|
|
|
|
|
|
$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
|
|
|
|
2019-09-20 16:05:36 +02:00
|
|
|
\D3StopSQLLog();
|
|
|
|
|
|
|
|
// or
|
|
|
|
|
|
|
|
\D3StartSQLLog();
|
|
|
|
|
|
|
|
$db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
|
|
|
|
$list = $db->getAll('SELECT * FROM oxarticles WHERE oxprice < ? LIMIT 100', [49.99]);
|
|
|
|
|
|
|
|
\D3StopSQLLog();
|